Wednesday, August 17, 2005
The smallest possible zip files
Whilst there are many file formats that offer better compression, the ZIP file format is still very widely used, and in fact experiencing a surge in popularity again, since it is the basis for a number of other file formats, including
The results were:
- jar files used in Java
- kmz (compressed kml) files used by Google Earth
- Microsoft's upcoming xml and zip based Office document format
- OpenOffice's document format
The results were:
- pkzip command line version 4.0 (parameters -level=9) produced a compressed file which I considered my baseline file size
- info-zip version 2.31 (parameters -J -X -j -9) produced a file that was about 0.5% smaller than the baseline until the compressed file size was about 3K, at which point the file size tended to be about 1% larger than the baseline file size
- 7-Zip version 4.23 (parameters -tzip -mx9 -mpass=4 -mfb=255) produced a file that matched the best of the previous two for very small compressed file sizes