yauzl icon indicating copy to clipboard operation
yauzl copied to clipboard

read central directory from a stream instead of multiple small random access reads

Open thejoshwolfe opened this issue 6 years ago • 0 comments

The central directory is read from start to finish in a predictable linear way. This perfectly fits the pattern of a read stream, except that yauzl is interested in fixed-size chunks of it at a time. There should be some kind of buffer to put in from of a read stream to provide yauzl with the chunks it wants.

This has promising possibilities for optimizing fs access by reducing the number of reads.

This idea interacts with #92.

thejoshwolfe avatar Nov 12 '18 15:11 thejoshwolfe