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

Moved mode check outside of loops #6650

Merged
merged 1 commit into from Oct 10, 2022
Merged

Conversation

radarhere
Copy link
Member

Resolves #6649

Improves performance by running strcmp against imOut->mode once, instead of repeatedly within loops.

@hugovk hugovk merged commit 6724b09 into python-pillow:main Oct 10, 2022
62 checks passed
@radarhere radarhere deleted the performance branch October 10, 2022 04:27
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.

Unnecessary check in tight loop in ImagingFill2
2 participants