-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
GH-77621: Delay some imports from pathlib #112244
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-77621: Delay some imports from pathlib #112244
Conversation
Import `contextlib`, `glob` and `re` only as required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This cuts >50% off the import time for me locally, which is fantastic! Definitely worth doing -- I left some thoughts above about the particulars :)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ship it!
Thank you very much :) |
Import `contextlib`, `glob` and `re` only as required. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Import `contextlib`, `glob` and `re` only as required. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Import
contextlib
,glob
andre
only as required.pathlib
#77621