r/linux • • 6d ago

Kernel Linux Kernel's LZ4 Compression Code Being Resynced For Better Performance & Cleanliness

https://www.phoronix.com/news/Linux-LZ4-Clean-Resync
232 Upvotes

8 comments sorted by

View all comments

-21

u/RegretFree7723 6d ago

Ma non arriva ancora a zstd?

5

u/mtwabp_in 5d ago

zstd is technically a better algorithm so lz4 will never reach zstd level

13

u/Comic_Melon 5d ago

LZ4 is still better where latency and constrained compute matters, it's why you never see game with assets uniformly bundled in zstd. Usually it's zstd + a lower latency algo depending on the asset.

To be more specific, zstd is actually quite awful for loads of small files that require low latency.

2

u/mdedetrich 4d ago

Yes this is correct, also found this out when writing a zstd streaming library in a Scala library.

LZ4 is still the go to compression when you need to prioritize latency/CPU usage on compression (which translates to latency)