-
Notifications
You must be signed in to change notification settings - Fork 31
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
zune-jpeg
2x slower than image
crate on my M1 MacBook
#132
Comments
hi it's because our idct is not vectorized but jpeg decoder contains one, there was some effort to address that and there was a branch which achieved that , I was to manually merge it but time became an issue, and I don't have the hardware to test it |
Merged neon optimized idct to I can't really test by how much, but would love if you could report speeds on your side |
I'm sorry, my original number were bad somehow. I've now done better measurements and I've found this:
I also measured in Firefox when compiling to WASM:
So: seems like I'm switching to zune-jpeg 🤘😃 |
good to hear that WASM speeds can be improved with using wasm intrinsics, If I happen to have time I may implement it but no promises there :) |
I am really intrigued by
zune-image
based on its compilation time and boasted speed, but my first impression is that it is much slower than theimage
crate.I am decoding 1440 × 1920 RGB JPEGs.
image
takes around 17 ms to decode a 1440 × 1920 RGB JPEG, whilezune-jpeg
takes around 33ms. I am NOT using thejpeg_rayon
feature ofimage
.Here is one of the images that decodes slowly:
(the image comes from saving frames of videos from https://github.com/google-research-datasets/Objectron)
The text was updated successfully, but these errors were encountered: