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

Manually specialize parts of CRC32 implementation to speed them up debug mode #19

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

stackotter
Copy link
Contributor

These changes are related to my debug mode optimisation PR on for swift-png and have to be merged before that PR can be merged.

These optimisations corresponded to about a 20% improvement in debug mode PNG decoding at the time that I implemented them.

Please tag a new version (probably just a patch version?) once this is merged to that I can update my swift-png PR to point to it.

@stackotter
Copy link
Contributor Author

Apologies for the long delay, things got pretty busy and then I moved on to other not png-related parts of my projects. I've now switched swift-image-formats over to using libpng because it provided the debug mode (and release mode) performance I require for my use case.

I'm pretty sure I've addressed your concerns with my latest commit.

If this PR goes against the philosophy of this project (e.g. if debug mode performance is a non-goal) I don't mind if you decide to close this PR instead of merging. I'm not too attached either way.

@tayloraswift tayloraswift merged commit 0ec004c into tayloraswift:master Jan 15, 2025
8 checks passed
@tayloraswift
Copy link
Owner

looks good, thanks! sorry swift-png didn’t work out for you.

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.

2 participants