Code Sample |
du install_flash_player_7_linux.tar.gz 999 install_flash_player_7_linux.tar.gz time advdef -z4 install_flash_player_7_linux.tar.gz 1017790 980222 96% install_flash_player_7_linux.tar.gz 1017790 980222 96% real 0m5.163s user 0m4.788s sys 0m0.204s du install_flash_player_7_linux.tar.gz 963 install_flash_player_7_linux.tar.gz |
Code Sample |
/usr/X11R6/lib/X11/fonts/misc# du -cs *.gz 1096 total /usr/X11R6/lib/X11/fonts/misc# advdef -z4 *.gz 919075 785524 85% |
Quote (mikshaw @ July 18 2007,21:48) |
And again, the question of the amount of compression used in these *.gz files has not been addressed. If it wasn't originally compressed to maximum (most aren't), the comparison is an unfair one. It's possible that compressing with gzip at the maximum level, as ^thehatsrule^ demonstrated, might show the size decrease to be consistently insignificant. |
Code Sample |
/usr/X11R6/lib/X11/fonts/misc# gzip -d *.gz /usr/X11R6/lib/X11/fonts/misc# du -cs *.pcf 5148 total /usr/X11R6/lib/X11/fonts/misc# gzip -9 *.pcf /usr/X11R6/lib/X11/fonts/misc# du -cs *.gz 1056 total /usr/X11R6/lib/X11/fonts/misc# advdef -z4 *.gz 880984 786600 89% /usr/X11R6/lib/X11/fonts/misc# du -cs *.gz 948 total |
Quote |
4 Limitations The advdef program cannot be used to recompress huge files because it needs to allocate memory for both the complete compressed and uncompressed data. |