Get the latest tech news
Rust-Based, Memory-Safe PNG Decoders "Vastly Outperform" C-Based PNG Libraries
Video and image encoders/decoders written in the Rust programming language for its memory safety guarantees is often viewed as one of the compelling areas for the programming language to better protect against malformed/malicious content especially within web browsers
Sergey Davidoff with the image-png and zune-png Rust projects shared that the team posted to Reddit some promising details around their own findings for memory-safe Rust PNG decoders being able to outperform common C PNG libraries by a significant margin. In addition to being faster and more secure than the C-based PNG libraries, they also argue that these Rust-based solutions are production ready: All three memory-safe implementations support APNG, reading/writing auxiliary chunks, and other features expected of a modern PNG library.
Or read this on Phoronix