But most people I work with will pick zstd every time even in cases where decompression speed matters the most.
Zstd is really good. If you're a math/compression theory nerd it makes a lot of good choices. Also, if you're willing to tune zstd instead of using the defaults, so far anyway, I haven't found any application where the right answer wasn't zstd.
At this point I don't think it's unreasonable to expect new compression developments to to explicitly say "What is improved over ZStandard".
And this is exactly the kind of cognitive laziness I'm talking about.
It really depends on what you want to do, as decompression speeds can be meaningless and irrelevant in some applications, if not practically all of them.
Can you provide a specific example where you feel lz4 is hands down the best option?
And again, I shouldn’t have to keep explaining this. zstd isn’t some magic answer to everything.
That logic doesn't really work. It's true that zstd doesn't let you tune it to be as fast as lz4. But it's possible that a slightly different design could make that possible, so that the new version is better than lz4 at all speeds and at all ratios. Making one compression algorithm strictly better than another requires no magic.
Also very cool that qcow contains zstd support (didn't know that either!).
> Btrfs supports transparent file compression. There are three algorithms available: ZLIB, LZO and ZSTD(since v4.14)
I've been using zstd compression for qcow2 images since last year, but I admit it's kind of hidden. The man page for qemu-img [1] doesn't say a word about zstd, but it's there alright [2].
[1]: https://www.qemu.org/docs/master/tools/qemu-img.html
[2]: https://gitlab.com/qemu-project/qemu/-/blob/v7.0.0/block/qco...
This should be stressed. Benchmarks show zstd's compression ratio being 75% of lz4's. Pushing 25% less data over a network is enough to win any real-world test, not to mention the impact it has on operational costs.
There could be some use cases where this doesn't work out, such as a compressed network connection, where everything has to be compressed/decompressed in a 1:1 ratio.
"compression speed is lower"
To me this reads as though it's faster. Maybe you meant "compression speed is Slower"?
Disclaimer: I generally dislike being pedantic, especially on HN. I hope this message doesn't come across that way.
So it makes sense if we mostly don't care about CPU usage for compression.