logoalt Hacker News

chungylast Friday at 4:45 PM1 replyview on HN

Zip has a central directory you could just query, instead of having to construct one in-memory by scanning the entire archive. That's significantly less work.


Replies

QuantumNomad_last Friday at 6:48 PM

I mean if they include a pre-made index with it. For example an uncompressed index at byte offset 0 in the tar ball that lists what is inside and their offsets. It would still be comparable amount of work to create software to do that with tar as to use a zip file, if fine grained compression levels etc is being used.

show 1 reply