A backdoor in xz
A backdoor in xz
Posted Mar 30, 2024 21:19 UTC (Sat) by mbunkus (subscriber, #87248)In reply to: A backdoor in xz by MarcB
Parent article: A backdoor in xz
Really? I always think of zstd as worse but orders of magnitude faster than xz, and worse but in-different-universes-kind-of-faster than bzip9 (all at default settings).
After reading another comment in this thread about using zstd for systemd's journal, I did a short test with a 1.6 GB journal export file (journalctl -o export …). The results were roughly:
| Type | Size | Time | |--------------|------|-------| | uncompressed | 1.6G | — | | gzip | 78M | 6.9s | | bzip2 | 58M | 1m34s | | zstd | 62M | 0.9s | | zstd -9 | 51M | 3.9s | | xz | 43M | 4.5s |
With the exception of zstd -9 all other compressors used their default settings.
(As stated in journalctl's man page, the "export" format is mostly text with a small amount of binary data for structure)
I'd be interested in situations where zstd compresses better than xz. Do you have some concrete numbers?
