3 ms·
Zlib is unapologetically written to be portable rather than fast. It is absolutely no wonder that a Rust implementation would be faster. It runs on a pathetical
by hinkley 2y ago
Zlib is unapologetically written to be portable rather than fast. It is absolutely no wonder that a Rust implementation would be faster. It runs on a pathetically small number of systems by contrast. This is not a dig at Rust, it’s an acknowledgement of how many systems exist out there, once you include embedded, automotive, aerospace, telecom, industrial control systems, and mainframes.
Richard Hipp denounces claims that SQLite is the widest-used piece of code in the world and offers zlib as a candidate for that title, which I believe he is entirely correct about. I’ve been consciously using it for almost thirty years, and for a few years before that without knowing I was.
- maccard 2y agoExcept this comparison isn’t against zlib, it’s against zlib-ng [0]. The readme states: > The result is a better performing and easier to maintain zlib-ng. So they’re comparing a first pass rewrite against a variation of zlib designed for performance [0] https://github.com/zlib-ng/zlib-ng https://github.com/zlib-ng/zlib-ng