-
Notifications
You must be signed in to change notification settings - Fork 20
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
Improve @jquash/avif decode speed #43
Comments
Thanks @talhaozdemir! I think I might need a little more information:
|
hi, thanks for reply, here is what I tried;
imageFile is an base64 avif file and some functions for above code;
and yes it is browser's native decoding speed |
Thanks for the extra context! That makes it very clear. Yeah... I am not sure if we can compete with the browser's own decoder. There are some optimizations that could be made to help improve the speed of this project's AVIF decoder like
I don't have the expertise or time to explore that right now, but I would consider a pull request if someone is interested. If you're after speed in the browser, I recommend sticking with the Canvas API or seeing if there's a more optimized AVIF wasm library out there. |
Thank you for the suggestions; I don't have much technical knowledge in these areas either. These suggestions are sufficient, you can close this issue if you want. |
Looks like there is an existing PR upstream for upgrading to a newer avif version. When I find time I'll see if we can pull this in. |
Awesome news! Thanks for your support. |
Quickly noting, looks like there's a faster and lighter weight decoder, https://code.videolan.org/videolan/dav1d. I need to doublecheck which decoder we're using. This could be a good potential improvement. |
Decode speed is about 1200ms - 1500ms, but when I use an AVIF supported browser, speed is about 200ms - 300ms. Is there any way to increase decoding speed?
The text was updated successfully, but these errors were encountered: