
Originally Posted by
jhansonxi
How does XZ compare to 7zip or bzip2?
I've never liked tar/Gzip archives. Too slow to open large archives because they have to be completely decompressed first. I can get a directory listing of the contents of a an equivalent 7z archive much faster. The deb files are created with Gnu ar then Gzip, also requiring a two-stage extraction process FWICT.
xz is just compression, in the same way as gzip - you generally still use tar as the archiver (or whatever archiver you want).
Where exactly are the memory concerns coming from? The xz manpage says:
Code:
The following table summarises the features of the presets:
Preset DictSize CompCPU CompMem DecMem
-0 256 KiB 0 3 MiB 1 MiB
-1 1 MiB 1 9 MiB 2 MiB
-2 2 MiB 2 17 MiB 3 MiB
-3 4 MiB 3 32 MiB 5 MiB
-4 4 MiB 4 48 MiB 5 MiB
-5 8 MiB 5 94 MiB 9 MiB
-6 8 MiB 6 94 MiB 9 MiB
-7 16 MiB 6 186 MiB 17 MiB
-8 32 MiB 6 370 MiB 33 MiB
-9 64 MiB 6 674 MiB 65 MiB
So using the default, 6, you only need 9MiB RAM to decompress.
As for speed, I'm sure they're right to look further into it, but pacman uses xz and is arguably the fastest package manager (and certainly the fastest I've ever used).