Blog posts for `zlib-rs`
-
Fixing our own problems in the Rust compiler
In our data compression projects, we use Rust where C is traditionally used. During the work, we've hit limitations in Rust itself and in the surrounding tooling. Over the years, we've become increasingly comfortable with fixing these issues ourselves.
Read more ... -
zlib-rs: a stable API and 30M downloads
Since the first release in April 2024, zlib-rs has come a long way. It has seen major adoption over the last year, and, we're proud to say, is now feature complete. We've released zlib-rs 0.6, the first version with a stable and complete API.
Read more ... -
Emulating avx-512 intrinsics in Miri
Recently we've started work on using more avx512 features in zlib-rs. The avx512 family of target features provides SIMD intrinsics that use 512-bit vectors (double the size of avx2, which uses 256-bit vectors). These wider intrinsics can speed up certain algorithms dramatically.
Read more ... -
SIMD in zlib-rs (part 2): compare256
In part 1 of the "SIMD in zlib-rs" series, we've seen that, with a bit of nudging, autovectorization can produce optimal code for some problems. But that does not always work: with SIMD clever programmers can still beat the compiler.
Read more ... -
SIMD in zlib-rs (part 1): Autovectorization and target features
I'm fascinated by the creative use of SIMD instructions. When you first learn about SIMD, it is clear that doing more multiplications in a single instruction is useful for speeding up matrix multiplication. But how can all of these weird instructions be used to solve problems that aren't just arithmetic?
Read more ... -
zlib-rs is faster than C
We've released version 0.4.2 of zlib-rs, featuring a number of substantial performance improvements. We are now (to our knowledge) the fastest api-compatible zlib implementation for decompression, and beat the competition in the most important compression cases too.
Read more ... -
The fastest WASM zlib
This year we started work on zlib-rs, an implementation of Zlib in Rust, with the goal of maintaining excellent performance while introducing memory safety.
Read more ... -
Trifecta Tech Foundation is the new home for memory safe zlib
Today we're pleased to announce that the recently developed open source memory safe implementation of zlib – zlib-rs – initiated by ISRG's Prossimo project now has a new long-term home at our Trifecta Tech Foundation.
Read more ... -
Current zlib-rs performance
Our zlib-rs project implements a drop-in replacement for libz.so, a dynamic library that is widely used to perform gzip (de)compression.
Read more ... -
flate2 release v1.0.29 with new `zlib-rs` feature
With the new zlib-rs feature, a new backend is enabled that brings in a SIMD-accelerated Rust implementation.
Read more ...