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 #57

Merged
merged 7 commits into from Dec 14, 2014
Merged

Optimize #57

merged 7 commits into from Dec 14, 2014

Conversation

rygorous
Copy link
Collaborator

stb_image: PNG/zlib decoder optimizations.

The goal was to focus on low-complexity, high-yield changes: improve
decoding speed significantly while staying with the original spirit of
the library.

This is more than 2x faster on my machine when decoding my 1680x1050
24-bit test PNG (screenshot of a website) - very scientific, I know.
Nevertheless, there's nothing particularly data-sensitive in here. The
one thing that is specific to that particular file is that I added a
fast path for the "none" filter when img_n == out_n (i.e. just do a
memcpy). But that's such a trivial change (and likely to benefit other
files, since "none" is common) that I don't feel guilty about it.

@nothings
Copy link
Owner

Yay!

@nothings nothings self-assigned this Dec 14, 2014
@nothings nothings merged commit 1996a01 into nothings:master Dec 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants