I am creating a zip archive of one file, in 3 different ways:
zip -1
(least compression) --> 33.8kBzip -9
(most compression) --> 32.3kB- archive manager (zip option) --> 26.1kB
Why is there such a big difference?
Related: I'm trying to automatically zip files in Python using the zipfile
module, and its performance is comparable to that of zip
, but I want its performance to be that of archive manager. However, I can find no documentation on what archive manager does exactly. It claims to use 'zip' but clearly the compression is better...
xz
, which usually provides better compression thanzip
?file archive.zip
. You can try to open archive withfile-roller archive.zip
and see its Properties (Type and Compression ratio).