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
Free threaded scaling issues with @classmethod and @staticmethod #145779
The classmethod object, which is stored in the MRO cache. This should be pretty easy to fix (enable deferred reference counting when creating the object).
sm_descr_get increfs sm->sm_callable
cm_descr_get creates a new PyMethod_New, which increfs cm->cm_callable and the containing class
The classmethod and staticmethod objects, which are stored in the MRO cache. This should be pretty easy to fix (enable deferred reference counting when creating the object).
Don't staticmethod objects already use deferred reference counting?
Activity
brijkapadia commentedon Mar 11, 2026
Don't
staticmethodobjects already use deferred reference counting?colesbury commentedon Mar 11, 2026
Yes
colesbury commentedon Mar 11, 2026
I've edited the issue description
pythongh-145779: Improve classmethod/staticmethod scaling in free-thr…
pythongh-145779: Improve classmethod/staticmethod scaling in free-thr…
pythongh-145779: Improve classmethod/staticmethod scaling in free-thr…
pythongh-145779: Improve classmethod/staticmethod scaling in free-thr…
Merge branch 'main' into pythongh-145779-classmethod-staticmethod-sca…
gh-145779: Improve classmethod/staticmethod scaling in free-threaded …
pythongh-145779: Improve classmethod/staticmethod scaling in free-thr…
[3.14] pythongh-145779: Improve classmethod/staticmethod scaling in f…
pythongh-145779: Improve classmethod/staticmethod scaling in free-thr…
[3.14] gh-145779: Improve classmethod/staticmethod scaling in free-th…
khalidsaidi commentedon Mar 25, 2026
pythongh-145779: Improve classmethod/staticmethod scaling in free-thr…