-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
markdup: allocate i/o buf. according to docs (#169)
- Loading branch information
Artem Tarasov
committed
Mar 20, 2017
1 parent
cbae927
commit f15c248
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
This file is part of Sambamba. | ||
Copyright (C) 2012-2016 Artem Tarasov <[email protected]> | ||
Copyright (C) 2012-2017 Artem Tarasov <[email protected]> | ||
Sambamba is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
|
@@ -1263,7 +1263,7 @@ int markdup_main(string[] args) { | |
|
||
// marking or removing duplicates | ||
bam = new MultiBamReader(args[1 .. $-1]); | ||
bam.setBufferSize(io_buffer_size); | ||
bam.setBufferSize(io_buffer_size / (args.length - 2)); | ||
auto out_stream = new BufferedFile(args[$-1], FileMode.OutNew, io_buffer_size); | ||
auto writer = new BamWriter(out_stream, compression_level); | ||
writer.setFilename(args[$-1]); | ||
|
f15c248
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No way there can be two items?
f15c248
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No way, see f15c248#diff-43863eea806ec7794a9d813347a36392R1159