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

stb_image: minor optimization for interlaced pngs #1704

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

clibraries
Copy link

@clibraries clibraries commented Oct 12, 2024

Description:

  • Avoid pointer deref in inner loop
  • (With fno-strict-aliasing pointer lookups cannot assume to be loop invariants)

I am studying this particular common pitfall. Please let me know if you have corrections. If you are not interested in this kind of change, that's ok.

Testing:

  • test_png_regress passes
  • benchmark with interlaced png to how improvement (it's very small, but can be detected)

@clibraries clibraries changed the title Minor optimization for interlaced pngs stb_image: minor optimization for interlaced pngs Oct 12, 2024
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