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

gh-109653: Avoid a top-level import of types in functools #109804

Merged
merged 1 commit into from
Sep 24, 2023

Conversation

AlexWaygood
Copy link
Member

@AlexWaygood AlexWaygood commented Sep 24, 2023

This reduces the import time of functools by around 13%, according to my measurements (using a PGO-optimised non-debug build, on Windows)

@AlexWaygood AlexWaygood merged commit 40d1de7 into python:main Sep 24, 2023
20 checks passed
@AlexWaygood AlexWaygood deleted the functools-import-time branch September 24, 2023 16:18
csm10495 pushed a commit to csm10495/cpython that referenced this pull request Sep 28, 2023
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 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.

2 participants