top | item 46753943

(no title)

LtdJorge | 1 month ago

Doesn’t ZIP have all the metadata at the end of the file, requiring some seeking still?

discuss

order

marginalia_nu|1 month ago

It has an index at the end of the file, yeah, but once you've read that bit, you learn where the contents are located and if compression is disabled, you can e.g. memory map them.

With tar you need to scan the entire file start-to-finish before you know where the data is located, as it's literally a tape archiving format, designed for a storage medium with no random access reads.

conradludgate|1 month ago

Yes, but it's an O(1) random access seek rather than O(n) scanning seek