Get the latest tech news

Rust-Written Zlib-rs Is Not Only Safer But Now Outperforming Zlib C Implementations


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.

Some takeaways from that blog post entitled " zlib-rs is faster than C":"As far as we know, we're the fastest api-compatible zlib implementation today for decompression. ... For decompression, the zlib implementation used in the chromium project (found here, which we use via a modified version of libz-sys) is often faster than zlib-ng. We've been chipping away at compression too (shoutout to Brian Pane, who contributed numerous PRs in this area), but see more mixed results."

Get the Android app

Or read this on Phoronix

Read more on:

Photo of Rust

Rust

Related news:

News photo

Greg Kroah-Hartman Supports Rust in the Kernel

News photo

Rust, C++, and Python trends in jobs on Hacker News (February 2025)

News photo

As the Kernel Turns: Rust in Linux saga reaches the “Linus in all-caps” phase