3 ms·
Yeah, this article about a rust "win" perfectly illustrates why I distrust all good news about it. Rust zlib is faster than zlib-ng, but the latter isn't a par
by fxtentacle 2y ago
Yeah, this article about a rust "win" perfectly illustrates why I distrust all good news about it.
Rust zlib is faster than zlib-ng, but the latter isn't a particularly fast C contender. Chrome ships a faster C zlib library which Rust could not beat.
Rust beat C by using pre-optimized code paths and then C function pointers inside unsafe. Plus C SIMD inside unsafe.
I'd summarize the article as: generous chunks of C embedded into unsafe blocks help Rust to be almost as fast as Chrome's C Zlib.
Yay! Rust sure showed it's superiority here!!!!1!1111
- FreshOldMage 2y agoDid you even read the article? They compare specifically against the Chrome zlib library and beat it at 10 out of 13 chunk sizes considered.