Zlib-Rs Is Not Only Safer but Now Outperforming Zlib C Implementations
Published on: 2025-07-15 20:15:55
"Lots of performance improvements. We're now substantially faster than other implementations for inflate (decompression), and faster in the most important cases for compression."
Zlib-rs as a Rust programming language implementation of the Zlib file format for better safety is now beginning to outperform the C implementations of the widely-used Zlib.Zlib-rs 0.4.2 was released last week and notes in the release announcement The Trifecta Tech Foundation that develops Zlib-rs also put out a lengthy blog post today that outlines the performance improvements over Zlib C implementations, including both zlib-ng and the Chromium zlib implementation.
"As far as we know, we're the fastest api-compatible zlib implementation today for decompression. Not only do we beat zlib-ng by a fair margin, we're also faster than the implementation used in chromium.
...
We're now significantly faster than zlib-ng for all but the smallest chunk size. A chunk size of 2^4 = 16 bytes is very unlikely to be rel
... Read full article.