Uh oh!
There was an error while loading. Please reload this page.
GH-124715: Move trashcan mechanism into Py_Dealloc - #132280
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.
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.
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.
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. |
…ythonGH-132280)" This reverts commit 44e4c47.
Uh oh!
There was an error while loading. Please reload this page.