Remix.run Logo
chungy 3 hours ago

Zip allows you to set compression algorithm on a per-file basis, including no compression.

QuantumNomad_ 2 hours ago | parent [-]

You can achieve the same with tar if you individually compress the files before adding them to the tar ball instead of compressing the tar ball itself.

I don’t see how that plus a small index of offsets would be notably more or less work to do from using a zip file.

chungy 2 hours ago | parent [-]

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.