Skip to content

gh-109653: Improve enum import time by avoiding import of functools#109789

Merged
ethanfurman merged 1 commit intopython:mainfrom
AlexWaygood:enum-import-time
Sep 23, 2023
Merged

gh-109653: Improve enum import time by avoiding import of functools#109789
ethanfurman merged 1 commit intopython:mainfrom
AlexWaygood:enum-import-time

Conversation

@AlexWaygood
Copy link
Copy Markdown
Member

@AlexWaygood AlexWaygood commented Sep 23, 2023

This reduces the import time of enum by over 50% on my machine (PGO-optimised, non-debug build on Windows), from around 0.007s to around 0.003s

@AlexWaygood AlexWaygood added performance Performance or resource usage 3.13 bugs and security fixes type-feature A feature request or enhancement stdlib Standard Library Python modules in the Lib/ directory labels Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.13 bugs and security fixes performance Performance or resource usage stdlib Standard Library Python modules in the Lib/ directory type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants