[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] maint: tweak xz options to compress the release tarball even mor
From: |
Antonio Diaz Diaz |
Subject: |
[PATCH] maint: tweak xz options to compress the release tarball even more |
Date: |
Fri, 13 Jan 2017 16:10:28 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 |
Jim Meyering wrote:
-export XZ_OPT = -8e
+export XZ_OPT = --lzma2=preset=9e,dict=48MiB,pb=0
Lets see how well this works.
The original xz tarball from ftp.gnu.org and the lzip tarball made by
'lzip -9':
-rw-r--r-- 1 5798517 2016-11-30 20:14 coreutils-8.26.tar.lz
-rw-r--r-- 1 5810244 2016-11-30 20:14 coreutils-8.26.tar.xz
The xz tarball compressed with the new XZ_OPT and the lzip tarball made
by 'lzip -9 -s48MiB':
-rw-r--r-- 1 5655213 2016-11-30 20:14 coreutils-8.26.tar.lz
-rw-r--r-- 1 5662812 2016-11-30 20:14 coreutils-8.26.tar.xz
Lzip creates a smaller tarball in both cases.
Besides, in a pinch, such users can always decompress on another system
and either operate directly on a recompressed (or uncompressed) tarball.
Or you can make the life of such users easier by distributing the lzip
tarball so that they can decompress it even on the smallest systems
using the low memory mode of lunzip.
Best regards,
Antonio.