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

perf: faster jxl decoding #681

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

william-silversmith
Copy link
Contributor

Hi Jeremy,

The current JXL decoding speed is kind of slow. It looks like rust jxl-oxide doesn't support simd or threads currently, but I was able to optimize the binary with wasm-opt -O3 which cut the size of the wasm file from 2.0 MB to 1.7 MB and seems to speed up decoding by 19% on some test images.

It's still slow, but the speed up makes it somewhat more tolerable (~2.1s to ~1.7s). By comparison JPEG decodes in about 0.2s on these images.

As an aside, I heard from internet forums that Google Research might be producing a JXL rust decoder implementation for Firefox, but I don't know what the status is of that. I presume it'll be pretty fast when it's ready.

Will

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant