Currently, taxonkit uses xopen fully buffered output writers. Would it be possible to use at least a line-buffered writer? Grep does this by an additional parameter --line-buffered.
The rationale behind this request is the piping of BLASTs tabular output. BLAST is line-buffered and I can process hits as they "appear" but not with taxonkit. Long-running BLAST jobs piped to taxonkit will produce the output only if a lot of hits "appear", regardless of the Linux tools unbuffer or stdbuf -oL.
Currently, taxonkit uses xopen fully buffered output writers. Would it be possible to use at least a line-buffered writer? Grep does this by an additional parameter
--line-buffered
. The rationale behind this request is the piping of BLASTs tabular output. BLAST is line-buffered and I can process hits as they "appear" but not with taxonkit. Long-running BLAST jobs piped to taxonkit will produce the output only if a lot of hits "appear", regardless of the Linux toolsunbuffer
orstdbuf -oL
.