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#118202AlexWaygood merged 9 commits intopython:mainfrom
inspect._shadowed_dict#118202Conversation
carljm
left a comment
There was a problem hiding this comment.
Looks good to me, once we get news/tests/benchmarks.
BenchmarksAll timings done with a fresh PGO-optimised build on
|
|
(The |
|
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 <Alex.Waygood@Gmail.com>
|
GH-118232 is a backport of this pull request to the 3.12 branch. |
Slower than
main, but significantly faster than a straight revert of #104267.