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

Use functools.lru_cache for hopper() #7912

Merged
merged 7 commits into from
Apr 1, 2024

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Mar 28, 2024

Replace the custom caching for hopper() with functools.lru_cache.

https://docs.python.org/3/library/functools.html#functools.lru_cache

@hugovk hugovk added the Cleanup label Mar 28, 2024
Tests/helper.py Outdated Show resolved Hide resolved
Tests/helper.py Outdated Show resolved Hide resolved
Tests/helper.py Outdated Show resolved Hide resolved
Co-authored-by: Ondrej Baranovič <ondreko.tiba@gmail.com>
Tests/helper.py Outdated Show resolved Hide resolved
Tests/helper.py Outdated Show resolved Hide resolved
Tests/helper.py Outdated Show resolved Hide resolved
Tests/helper.py Outdated Show resolved Hide resolved
Tests/helper.py Outdated Show resolved Hide resolved
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
@hugovk hugovk merged commit 2237677 into python-pillow:main Apr 1, 2024
55 of 56 checks passed
@hugovk hugovk deleted the hopper-lru-cache branch April 1, 2024 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants