Hi all!
Let me introduce some fun art by myself!
gzip-1.2.4-hack is a hacked/improved version of gzip-1.2.4. I played with Deflate and added a slightly improved parsing (lazy matching with two bytes lookahead) which in many cases gives a little bit higher compression than original "-9" mode. Also the gzip-1.2.4 hack keeps input files.
To use new compression mode, run gzip with the "-9" switch.
Some testing results:
world95.txt:
gzip 1.2.4, -9: 862,955 bytes
gzip 1.2.4-hack, -9: 857,205 bytes
fp.log:
gzip 1.2.4, -9: 1,337,914 bytes
gzip 1.2.4-hack, -9: 1,319,851 bytes
bible.txt:
gzip 1.2.4, -9: 1,176,645 bytes
gzip 1.2.4-hack, -9: 1,168,229 bytes
3200.txt:
gzip 1.2.4, -9: 6,205,632 bytes
gzip 1.2.4-hack, -9: 6,183,702 bytes
ENWIK8:
gzip 1.2.4, -9: 36,445,248 bytes
gzip 1.2.4-hack, -9: 36,273,716 bytes
ENWIK9:
gzip 1.2.4, -9: 322,591,995 bytes
gzip 1.2.4-hack, -9: 321,050,648 bytes
Of course, full compatibility was kept. So, why not to get an extra compression?
Link:
gzip124hack.zip (61 KB)
![]()