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

webp: Lossless images should use table-based huffman decoder #55

Closed
fintelia opened this issue Jul 8, 2023 · 0 comments · Fixed by #88
Closed

webp: Lossless images should use table-based huffman decoder #55

fintelia opened this issue Jul 8, 2023 · 0 comments · Fixed by #88

Comments

@fintelia
Copy link
Contributor

fintelia commented Jul 8, 2023

The current lossless webp decoding logic does a branch for almost every single bit in the file:

https://github.com/image-rs/image/blob/038bc30b9b9b1daf809452523b557db58f9e781b/src/codecs/webp/huffman.rs#L189-L192

Switching to a more efficient huffman implementation would likely be orders of magnitude faster

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 a pull request may close this issue.

1 participant