vcflib / bio-vcf

Smart VCF parser DSL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

STDIN in separate thread

pjotrp opened this issue · comments

I replaced my own threading code with the parallel gem. I recommend that strongly from now on. Only problem is that the STDIN reader is no longer running in parallel. Not hard to fix (I think), but need to do that later. Won't make much of a difference probably (reading is pretty fast).

The reader is running in its own thread (the main one). Reading files with Ruby is actually very fast compared to the VCF processing and output processing later. This means there is nothing to optimize. Use pigz for decompression. See also

#26