Repository navigation
gh-148608: Unbind classmethods in LOAD_ATTR_CLASS - #148610
Fidget-Spinner wants to merge 5 commits into
Conversation
|
Hmm, I think I'm going to skip news as this change (in theory) should not be observable at all from the user's perspective, even on the perf side on the normal interpreter. A better way would be to load the method directly via _PyType_Lookup if we determine it's a type. However, that requires a lot of duplicated code and factoring of the _PyObject_GetMethod function. It's also a lot harder to get right. However, a working implementation of that would significantly improve FT scaling for |
|
I think I have a better solution of handling this at specialization time. Let me investigate. |
|
This PR is stale because it has been open for 30 days with no activity. |
|
@Fidget-Spinner Do you want to keep this open or did we find a better solution? |
|
This PR is stale because it has been open for 90 days with no activity. |
CALL_BOUND_METHOD_EXACT_ARGSnow becomesCALL_PY_EXACT_ARGSforcls.classmethod()calls.