Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 33.9k
GH-124715: Move trashcan mechanism into Py_Dealloc#132280
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
47c2439 to a7c0082Comparenascheme commented Apr 8, 2025
This is a good idea, IMHO. I had a similar PR but Mark's is more elegant than mine. |
Uh oh!
There was an error while loading. Please reload this page.
bedevere-bot commented Apr 9, 2025
🤖 New build scheduled with the buildbot fleet by @markshannon for commit 8aa20f2 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F132280%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
markshannon commented Apr 9, 2025
Initial performance numbers are a bit down. 0.2% - 1.6% slower. I'm testing another branch that adds |
markshannon commented Apr 10, 2025
With faster recursion checks, performance is mixed but no worse overall:
Although the 1.5% slowdown on linux x86 is concerning. I also tried passing in the thread state as a parameter to
|
iritkatriel commented Apr 10, 2025
Maybe perf will be better with just one additional if for a decref that is not a container. So you have an implementation of decref for containers, and do one if to decide whether to apply it or stay with the current one. |
markshannon commented Apr 11, 2025
Do you mean a test in Adding a branch in Testing for collections is more expensive. |
iritkatriel commented Apr 11, 2025
Sorry, yeah, dealloc. Maybe not worth it. |
vstinner left a comment
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.
The overall design LGTM.
I added a few comments.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Misc/NEWS.d/next/Core_and_Builtins/2025-04-08-17-48-11.gh-issue-124715.xxzQoD.rst Outdated Show resolvedHide resolved
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
44e4c47 into python:mainUh oh!
There was an error while loading. Please reload this page.
bedevere-bot commented Apr 30, 2025
|
vstinner commented Apr 30, 2025
|
Replace _PyObject_GC_UNTRACK() with PyObject_GC_UnTrack() to not fail if the method was already untracked.
vstinner commented Apr 30, 2025
I wrote #133199 to fix test_functools. |
Uh oh!
There was an error while loading. Please reload this page.