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

Optimize deflate table building #31

Merged
merged 14 commits into from
Oct 14, 2024
Merged

Conversation

fintelia
Copy link
Contributor

@fintelia fintelia commented Oct 4, 2024

From reading the zune-inflate source (which is in-turn based on libdeflate), I learned about a far faster way to build deflate tables. This is an in-progress implementation to switch over to that algorithm. Right now, it doesn't work with the multi-literal decoding optimization we were using, but I think that can be added.

Preliminary results show ~6% average speedups on end-to-end PNG decoding and on the order of 20-25% speedups for small images

@fintelia fintelia marked this pull request as ready for review October 13, 2024 22:11
@fintelia fintelia merged commit 1b782e8 into image-rs:main Oct 14, 2024
@fintelia fintelia deleted the fast-build-table branch October 14, 2024 00:36
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