image-rs / jpeg-decoder

JPEG decoder written in Rust
Apache License 2.0
147 stars 88 forks source link

Faster color conversions #157

Closed Shnatsel closed 4 years ago

Shnatsel commented 4 years ago

Speeds up end-to-end decoding by 5% in single-threaded mode. Considerably less than that in multi-threaded mode which is bottlenecked by #155 instead.

Another similar improvement will be possible once the float-to-int conversions defined as saturating will actually reach stable channel (https://github.com/rust-lang/rust/pull/71269) and the crate's MSVR reaches this version.