this post was submitted on 30 Mar 2024
223 points (98.3% liked)

Cybersecurity

5283 readers
155 users here now

c/cybersecurity is a community centered on the cybersecurity and information security profession. You can come here to discuss news, post something interesting, or just chat with others.

THE RULES

Instance Rules

Community Rules

If you ask someone to hack your "friends" socials you're just going to get banned so don't do that.

Learn about hacking

Hack the Box

Try Hack Me

Pico Capture the flag

Other security-related communities [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]

Notable mention to [email protected]

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

Damn, I was just looking into and learning about the different main compression (gzip, bzip, xz) algorithms the other week. I guess this is why you stick to the ol’ reliable gzip even if it’s not the most space efficient.

Genuinely crazy to read that a library this big would be intentionally sabotaged. Curious if xz can ever win back trust…

Can anyone help me understand xz vs Zstd?

[–] [email protected] 26 points 4 months ago (9 children)

Technically, XZ is just a container that allows for different compression methods inside, much like the Matroska MKV video container. In practice, XZ is modified LZMA.

There is no perfect algorithm for every situation, so I'll attempt to summarize.

  • Gzip/zlib is best when speed and support are the primary concerns
  • Bzip2 was largely phased out and replaced by XZ (LZMA) a decade ago
  • XZ (LZMA) will likely give you the best compression, with high CPU and RAM usage
  • Zstd is... really good, and the numerous compression levels offer great flexibility

The chart below, which was sourced from this blog post, offers a nice visual comparison.

[–] wyre 3 points 4 months ago

It’s too bad xz is really great for archival.

load more comments (8 replies)
load more comments (10 replies)