this post was submitted on 29 Mar 2024
369 points (99.7% liked)

Arch Linux

7761 readers
14 users here now

The beloved lightweight distro

founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 7 months ago (1 children)

Ah I see. Are there any reasons why people would choose to use xz over zlib?

[–] Supermariofan67 9 points 7 months ago (1 children)

It compresses much better, by a lot, as zlib/deflate is an ancient algorithm made back when computers only had a few megabytes of ram.

Nowadays though, zstd seems to be replacing both of them, as at max level it compresses about as well as xz while also being faster. Nevertheless, many programs link against all the common compression algorithms (xz/zlib/zstd/bz2) to support everything

[–] [email protected] 2 points 7 months ago