martinellimarco/t2sz

Allow using stdin

Opened this issue · 2 comments

vasi commented

Currently t2sz mmaps the input file, so it has to be a physical file. This makes t2sz difficult to use in pipelines, where some stream is generated and needs to be compressed, but we don't want the uncompressed stream persisted to disk.

There's no particular reason we couldn't just read blocks into a buffer, though.

Hey there,

You are right. At the moment, this is a design limitation that I should fix by replacing mmap with a buffered input, at least for raw mode. Tar mode requires some additional considerations.

I do plan to address this; however, at this time, I am quite busy with my daily work and can't promise any specific deadline.

It's a feature that I 100% intend to bring to the table, though.

vasi commented

That's reasonable, I know the feeling!