Memory-safe PNG decoders now vastly outperform C PNG libraries
TL;DR: Memory-safe implementations of PNG (png, zune-png, wuffs) now dramatically outperform memory-unsafe ones (libpng, spng, stb_image) when decoding images.
Rust png crate that tops our benchmark shows 1.8x improvement over libpng on x86 and 1.5x improvement on ARM.
How was this measured?
Each implementation is slightly different. It's easy to show a single image where one implementation has an edge over the others, but this would not translate to real-world performance.
In order to get bench...
Read more at old.reddit.com