Skip to content

Commit

Permalink
Tweak the size of caches for parallel consensus calling down to reduc…
Browse files Browse the repository at this point in the history
…e memory usage.
  • Loading branch information
tfenne committed Oct 20, 2022
1 parent da9ecbc commit f72a0c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class ConsensusCallingIterator[ConsensusRead <: SimpleRead](sourceIterator: Iter
groupingIterator.flatMap(caller.consensusReadsFromSamRecords)
}
else {
ParIterator(groupingIterator, threads=threads).flatMap { rs =>
ParIterator(groupingIterator, threads=threads, chunkSize=threads * 16, chunkBuffer=1).flatMap { rs =>
val caller = callers.get()
caller.synchronized { caller.consensusReadsFromSamRecords(rs) }
}.toAsync(chunkSize * 8)
Expand Down

0 comments on commit f72a0c3

Please sign in to comment.