Commit Graph

4 Commits (298284d754aa946b24a9d40d12cd911c57e8eacd)

Author SHA1 Message Date
Heng Li c819643412 make kthread.c compiled with g++ 2016-01-26 22:49:28 -05:00
Heng Li 3ae437ac13 r1044: fixed an out-of-order bug in kthread 2015-03-25 12:16:06 -04:00
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