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.

Get the Android app

Or read this on Phoronix

Read more on:

Photo of Memory

Memory

Photo of Rust

Rust

Photo of safe png decoders

safe png decoders

Related news:

News photo

I spent 2 years rebuilding my trading platform in Rust. I have no regrets

News photo

Trailbase: Fast, single-file, open-source app server built using Rust and SQLite

News photo

A Novel Idea About `Functor` in Rust?