logoalt Hacker News

joecool1029today at 5:43 PM3 repliesview on HN

Just use zstd unless you absolutely need to save a tiny bit more space. bzip2 and xz are extremely slow to compress.


Replies

silisilitoday at 5:54 PM

I'd argue it's more workload dependent, and everything is a tradeoff.

In my own testing of compressing internal generic json blobs, I found brotli a clear winner when comparing space and time.

If I want higher compatibility and fast speeds, I'd probably just reach for gzip.

zstd is good for many use cases, too, perhaps even most...but I think just telling everyone to always use it isn't necessarily the best advice.

show 1 reply
hexxagonetoday at 6:02 PM

In the LZ high compression regime where LZ can compete in terms of ratio, BWT compressors are faster to compress and slower to decompress than LZ codecs. BWT compressors are also more amenable to parallelization (check bsc and kanzi for modern implementations besides bzip3).

NooneAtAll3today at 7:45 PM

why would one even care about compression speed on minecraft ComputerCraft machine?

size and decompression are the main limitations