В Mon, 12 May 2014 14:47:36 +0400 Alexander Tsoy <alexan...@tsoy.me> пишет:
> В Sun, 11 May 2014 18:26:32 -0500 > Gordon Pettey <petteyg...@gmail.com> пишет: > > > A lot of small files (e.g. AUTHORS, ChangeLog > > > > FWIW: On my system, I have 59M of bz2 files in /usr/share/man and > > /usr/share/doc. A short script to decompress those and recompress with xz > > -6e reduced that to 36M. > > Very strange o_O > > Here is my test results. xz options: "--lzma2=preset=6e,dict=4MiB". > Larger dictionary size does not improve compression ratio, I get > even worse results with just "-6e" or "-9e". man-bz2 is a full copy of > my /usr/share/man, man-xz is a recompressed one. > > Size comparison: > > $ du -s man-bz2/ man-xz/ > 82032 man-bz2/ > 82308 man-xz/ Note that a lot of files in these directories are non-compressed text files or symlinks: $ find man-bz2/ \( ! -name "*.bz2" -o -type l \) -a ! -type d | wc -l 8434 $ find man-bz2/ -name "*.bz2" -type f | wc -l 11243 $ find man-xz/ \( ! -name "*.xz" -o -type l \) -a ! -type d | wc -l 8434 $ find man-xz/ -name "*.xz" -type f | wc -l 11243 After cleaning them and adding -b option: $ du -bs man-bz2/ man-xz/ 32158286 man-bz2/ 32550305 man-xz/ -- Alexander Tsoy