You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Automatically defer heavily shared objects in free-threading. #134821
@corona10 asked if it would be possible to automatically apply deferred refcounting on objects if we notice they're heavily shared in the interpreter through some heuristic. The problem in #134762 (comment) is that we need to defer basically anything shared as it would perform badly in a microbenchmark otherwise.
I think it should be possible. We could rely on biased refcounting to give us a rough estimate on when something is shared, once it's past a certain threshold, we automatically defer the object. Does anyone have a better heuristic to suggest?
Also I'm not going to take this up, as I have too much work on my plate already, so let me know if you'd like to work on it, I can collaborate and provide guidance.
Activity
ZeroIntensity commentedon May 28, 2025
I'd be happy to try this.
corona10 commentedon May 28, 2025
I will happily track the issue or try to help.
corona10 commentedon Feb 9, 2026
No more progress after PoC, I think that we can close the issue.