Hi,
I am using faidx.h functions to load compressed human genome into memory. Currently, it does not seem possible to bind decompression threads to file pointer of faidx_t structure, as it's not exposed in header file. For example, this code won't compile:
Unsavoury hack bgzf_thread_pool(*(BGZF **)faidx, tpool, 0); results in 30-40% faster reading using a single additional thread (please check this discussion).
I don't know if gain is large enough... But would you consider opening faidx_t structure to allow quicker decompression?
Hi, I am using
faidx.h
functions to load compressed human genome into memory. Currently, it does not seem possible to bind decompression threads to file pointer offaidx_t
structure, as it's not exposed in header file. For example, this code won't compile:Unsavoury hack
bgzf_thread_pool(*(BGZF **)faidx, tpool, 0);
results in 30-40% faster reading using a single additional thread (please check this discussion).I don't know if gain is large enough... But would you consider opening
faidx_t
structure to allow quicker decompression?