-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
PEP 703 Deferred reference counts #121459
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
Labels
Comments
Fidget-Spinner
added a commit
that referenced
this issue
Sep 13, 2024
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Sam Gross <655866+colesbury@users.noreply.github.com>
This is implemented now. |
What about #124101? should this one be considered as optional? |
@picnixz I'm waiting for the porting over the specializing intepreter to free threaded build to play out. If that works for LOAD_ATTR we wont need the PR anymore. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature or enhancement
Proposal:
PEP 703 proposes deferred reference counting to reduce contention between threads on shared objects' reference count fields.
This issue is not in conflict with Faster CPython's scheme of fully removing reference counts in the eval loop. In fact, some of the work runs parallel to it and will actually help it.
There are 3 wins I can observe right now:
LOAD_GLOBAL
LOAD_ATTR
I shall proceed in this order.
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
PyStackRef_FromPyObjectSteal
#125711The text was updated successfully, but these errors were encountered: