Commit Graph

2 Commits (efa0dd561aae19fb988dd2e5069fec1cf7f415e3)

Author SHA1 Message Date
Heng Li 9d8c906e4c r1017: process I/O in a separate thread
Previously, bwa-mem waits for I/O. When the input data comes from a slow source
(I/O or piped from a slow program), bwa-mem may spend significant amount of
wall-clock time in the single-thread mode. The same may also happen when bwa-mem
writes to slow target. This commit uses two sequence buffers. it allows bwa-mem
to map one buffer while filling or dumping the other buffer. When bwa-mem is run
on 16 threads using the bwa.kit pipeline, the wall clock time is reduced by 30%.
2014-11-26 12:32:48 -05:00
Heng Li 19d33faa30 use kthread for multi-threading
Bwa-mem should have better performance with many CPU cores.
2013-11-02 12:13:11 -04:00