-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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-118013: Use weakrefs for the cache key in inspect._shadowed_dict
#118202
gh-118013: Use weakrefs for the cache key in inspect._shadowed_dict
#118202
Conversation
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.
Looks good to me, once we get news/tests/benchmarks.
BenchmarksAll timings done with a fresh PGO-optimised build on
|
(The |
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.
🎉
Thanks @AlexWaygood for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
…_dict` (pythonGH-118202) (cherry picked from commit 8227883) Co-authored-by: Alex Waygood <[email protected]>
GH-118232 is a backport of this pull request to the 3.12 branch. |
…d_dict` (GH-118202) (#118232) Co-authored-by: Alex Waygood <[email protected]>
Slower than
main
, but significantly faster than a straight revert of #104267.