I’m a huge fan of Rust (❤️).
In a previous post I demoed fo2dat, which can be used to unpack Fallout 2 DAT2 files. I used the venerable flate2 crate for that project, but I’ve since learnt about libdeflate, which reported to be a much faster block-based DEFLATE (de)compression library.
libdeflate didn’t have Rust bindings, so I wrote some as a learning
exercise. The result is
exposes a safe Rust API to the library. Benchmarks indicate that the
library is around 2-3x faster than
flate2, which is based on
minizip. That’s a pretty insane speedup for such a popular