Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the jpeg-encoder crate for a 2x speedup #1885

Open
Shnatsel opened this issue Mar 13, 2023 · 0 comments
Open

Use the jpeg-encoder crate for a 2x speedup #1885

Shnatsel opened this issue Mar 13, 2023 · 0 comments
Labels
kind: slow Not wrong, but still unusable

Comments

@Shnatsel
Copy link
Contributor

The jpeg-encoder crate implements a pure-Rust JPEG encoder, with unsafe only used for SIMD.

In my tests encoding a large image with it is over 2x faster than the current encoder (332 ms vs the current 785ms on x86).

Correctness seems good too - there were no issues on my web-scraped JPEG corpus (23,000 images). The crate also seems to be extensively fuzzed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: slow Not wrong, but still unusable
Projects
None yet
Development

No branches or pull requests

1 participant