attractivechaos / klib

A standalone and lightweight C library
http://attractivechaos.github.io/klib/
MIT License
4.18k stars 556 forks source link

Apply seqtk PR to improve kseq.h parsing performance #173

Closed jmarshall closed 1 year ago

jmarshall commented 1 year ago

This applies @kloetzl's lh3/seqtk#123 to klib's kseq.h.

For one large data file on my machine, this reduces _kseqbench2's kstream time from ~1.65s to ~0.92s. (I have not heavily tested it otherwise.)

attractivechaos commented 1 year ago

Thanks!