Commit Graph

5 Commits (main)

Author SHA1 Message Date
John Marshall beff2e27f8 Add missing <stdint.h> include
Fixes compilation on non-glibc platforms, e.g., FreeBSD and Alpine Linux.
2017-04-25 13:54:31 +01:00
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