2 ms·
The algorithm behind zlib is showing it's age, after all rfc1950 is 25 years old, and the deflate algorithm dates back to 33 year old pkzip. By now you get bett
by wongarsu 5y ago
The algorithm behind zlib is showing it's age, after all rfc1950 is 25 years old, and the deflate algorithm dates back to 33 year old pkzip. By now you get better compression at better speed from zstd, or vastly better compression at slower speed from lzma2, for basically anything you throw at it. But we still use zlib nearly everywhere, not least because it just works, no matter what language or hardware you use. It's a great piece of software and probably one of the most ubiquitous libraries out there.
- willis936 5y agoLZ dates back 45 years but is still high performance. I can only imagine that we've been saddled with deflate because it's computationally light. Well we have computation now and still enjoy using storage efficiently, so are (slowly, lazily) moving off deflate.
- user-the-name 5y ago"LZ" is a vague family of algorithms, with a massively wide spectrum of performance and efficiency. Nearly every single modern compression algorithm falls into this family, with the only remotely popular exceptions I can think of being bzip2 and PPMd.