-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-118761: Improve import time by lazy import of warnings
#129765
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
Conversation
codeop
warnings
Misc/NEWS.d/next/Library/2025-02-07-05-55-08.gh-issue-118761.aayL_A.rst
Outdated
Show resolved
Hide resolved
…ayL_A.rst Co-authored-by: Wulian233 <1055917385@qq.com>
Misc/NEWS.d/next/Library/2025-02-07-05-55-08.gh-issue-118761.aayL_A.rst
Outdated
Show resolved
Hide resolved
Thanks for doing this. I did it for hmac locally since I'm implementing the HACL* hmac nut it's good to see it done here. |
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
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.
Please revert the whitespaces and unrelated new lines changes (unless the codeowners tell you that you can keep the changes though)
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
We should verify that each change has non-noise benefits rather than changing everything at once in an omnibus PR. @donBarbos also please present your motivating statistics in a more readable manner, I expect to see a comparison of each module against baseline, rather than four large log outputs. A |
I ran a test for
Sounds like we should revert those changes from this PR. |
I'll close this PR as the contributor has opened some smaller individual changes. A |
warnings
.warnings
andstruct
fromLib/ctypes/_layout.py
.My hyperfine benchmarks:
First experiment in Main branch
Second experiment in Main branch
First experiment in PR branch
Second experiment in PR branch