Hacker News new | ask | show | jobs
by e63f67dd-065b 1408 days ago
No, your critiques are of how 7zip implements an archival format built on top of zstd. The zstd algorithm has no concept of files, only bytes.

Archival software then has to build a file format on top of the compression algorithm, and there are multiple ways to slice the problem. For example, a tar.gz will first tar everything into a big archive file, then feed it into gzip for compression. zip, on the other hand, feeds each file individually into the chosen algorithm (DEFLATE for most implementations).

Your critique is that the 7zip archive format is not suitable for use with zstd in the case of many small yet identical files. zstd is doing its job, just the archival format is not playing along.