gh-131798: constant fold classmethod and staticmethod in JIT#148331
gh-131798: constant fold classmethod and staticmethod in JIT#148331kumaraditya303 wants to merge 4 commits intopython:mainfrom
Conversation
|
This can be done for class lookups as well so things like |
|
I don't see any change in deltablue, but that's because it's using |
This turned out to be harder than I thought, because it would fold the classmethod descriptor into a unbound method lookup rather than a bound one, which changes the following CALL_BOUND_METHOD_EXACT_ARGS in the trace. |
Script used for benchmark: