summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammad Alsaleh <ce.mohammad.alsaleh@gmail.com>2014-12-30 17:14:08 +0200
committerAllan McRae <allan@archlinux.org>2015-01-02 21:48:59 +1000
commit95da285f5670a56faf3bac0d999a6ba6d7153fab (patch)
treee3ca5399a5663eed32098ee927e26932510b9884
parent8da9be0955fc759f43c40dab8985f9d17ac8462a (diff)
downloadpacman-95da285f5670a56faf3bac0d999a6ba6d7153fab.tar.xz
pkgdelta: Use high compression options offered by xdelta3
* Add -9 which is the highest compression level. * Use lzma for secondary compression. Decompression speed is largely unaffected as most cycles are consumed by xz for re-compression. Some numbers: clang x86_64 [3.5.0-2.1 to 3.5.0-3] 17.21MiB default (0.73) 15.67MiB -9 (0.67) 13.59MiB -9 -S djw (0.58) 12.01MiB -9 -S lzma (0.51) inkscape x86_64 [0.48.5-3 to 0.48.5-4] 02.69MiB default (0.21) 01.64MiB -9 (0.13) 01.30MiB -9 -S djw (0.10) 01.01MiB -9 -S lzma (0.08) Signed-off-by: Mohammad Alsaleh <CE.Mohammad.AlSaleh@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--scripts/pkgdelta.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/pkgdelta.sh.in b/scripts/pkgdelta.sh.in
index be49326e..fe63974d 100644
--- a/scripts/pkgdelta.sh.in
+++ b/scripts/pkgdelta.sh.in
@@ -140,7 +140,7 @@ create_xdelta()
deltafile=$(dirname "$newfile")/$pkgname-${oldver}_to_${newver}-$arch.delta
local ret=0
- xdelta3 -q -f -s "$oldfile" "$newfile" "$deltafile" || ret=$?
+ xdelta3 -q -f -9 -S lzma -s "$oldfile" "$newfile" "$deltafile" || ret=$?
if (( ret )); then
error "$(gettext "Delta could not be created.")"
return 1