4 ms·
Last I looked at benchmarks, only lz4 level 1 compression is faster than fastest zstd setting. At all other lz4 levels, zstd has a mode as fast but with signifi
by alecmg 6y ago
Last I looked at benchmarks, only lz4 level 1 compression is faster than fastest zstd setting. At all other lz4 levels, zstd has a mode as fast but with significantly better compression.
But that is throughput. How latency (on small files/chunks) is affected I have no idea.
- unsigner 6y agoLZ4 makes sense when you need fast (i.e. runtime) compression; for anything compressed ahead of time and distributed to be decompressed, Zstd is probably better.
- aidenn0 6y agoYou have that backwards. LZ4 is completely about decompression speed, while zstd balances compression and decompression speed. For data that will be decompressed many times, and which decompression speed is most important, LZ4. Most other cases zstd wins
- ozychhi 6y agoWe were using modified lz4 (very much molded over our data) that was actually faster than memcpy of data that we were compressing.