deb package archive should use "lzma -1" or "xz -1e" compression by default
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dpkg |
New
|
Undecided
|
Unassigned | ||
dpkg (Ubuntu) |
Opinion
|
Wishlist
|
Unassigned |
Bug Description
If I understood, in order to fit any system, the compression method has to ensure that the required memory while decompression won't be too high. Maybe that's a reason of the choice of gzip compression method (in addition to its speed for decompression).
However, would it be possible to use the "--fast" or "-1" option of the lzma or xz compression programs ? With such a low force of those compression algorithms, the required memory for decompression is quite the same than the memory required by gunzip. However the compression ratio becomes better.
Below are a few details of the comparison :
-------
j@j-lt:~/tmp$ 7z x /var/cache/
7-Zip 9.04 beta Copyright (c) 1999-2009 Igor Pavlov 2009-05-30
p7zip Version 9.04 (locale=
Processing archive: /var/cache/
Extracting control.tar.gz
Extracting data.tar.gz
Everything is Ok
Files: 2
Size: 856328
Compressed: 856520
j@j-lt:~/tmp$ gunzip -c data.tar.gz > data.tar
j@j-lt:~/tmp$ gzip -c9 data.tar > data.tar.gz-9
j@j-lt:~/tmp$ lzma -c1 data.tar > data.tar.lzma-1
j@j-lt:~/tmp$ xz -c1e data.tar > data.tar.xz-1
j@j-lt:~/tmp$ ls -lh
total 6,0M
-rw-r--r-- 1 j j 18K 2012-07-25 19:36 control.tar.gz
-rw-r--r-- 1 j j 3,0M 2012-08-15 17:46 data.tar
-rw-r--r-- 1 j j 820K 2012-07-25 19:36 data.tar.gz
-rw-r--r-- 1 j j 820K 2012-08-15 17:46 data.tar.gz-9
-rw-r--r-- 1 j j 765K 2012-08-15 17:47 data.tar.lzma-1
-rw-r--r-- 1 j j 718K 2012-08-15 17:52 data.tar.xz-1
j@j-lt:~/tmp$
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: linux-libc-dev 2.6.32-42.95
Regression: No
Reproducible: Yes
ProcVersionSign
Uname: Linux 2.6.32-41-generic i686
AlsaDevices: Error: command ['ls', '-l', '/dev/snd/'] failed with exit code 2: ls: cannot access /dev/snd/: No such file or directory
AplayDevices: Error: [Errno 2] Aucun fichier ou dossier de ce type
Architecture: i386
ArecordDevices: Error: [Errno 2] Aucun fichier ou dossier de ce type
BootDmesg: (Nothing has been logged yet.)
Date: Wed Aug 15 18:07:22 2012
Dependencies:
Lsusb:
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 046d:c016 Logitech, Inc. M-UV69a/HP M-UV96 Optical Wheel Mouse
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: Sony Corporation PCG-FX301(FR)
ProcCmdLine: BOOT_IMAGE=
ProcEnviron:
LANG=fr_FR.UTF-8
SHELL=/bin/dash
SourcePackage: linux
dmi.bios.date: 07/04/2001
dmi.bios.vendor: Sony Corporation
dmi.bios.version: R0104K5
dmi.board.name: QII-Project
dmi.board.vendor: Sony Corporation
dmi.board.version: 1A
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: Sony Corporation
dmi.chassis.
dmi.modalias: dmi:bvnSonyCorp
dmi.product.name: PCG-FX301(FR)
dmi.product.
dmi.sys.vendor: Sony Corporation
Changed in linux (Ubuntu): | |
status: | New → Confirmed |
affects: | linux (Ubuntu) → dpkg (Ubuntu) |
Changed in dpkg (Ubuntu): | |
status: | Confirmed → New |
Changed in dpkg (Ubuntu): | |
importance: | Undecided → Wishlist |
Changed in dpkg (Ubuntu): | |
status: | New → Incomplete |
status: | Incomplete → Confirmed |
Of course, the applications which require more memory at runtime would use a higher compression force for the deb package.