Issue #29263: LOAD_METHOD support for C methods

Calling builtin method is at most 10% faster.
This commit is contained in:
INADA Naoki 2017-02-03 07:43:03 +09:00
parent 144fff8b90
commit 5566bbb8d5
8 changed files with 88 additions and 36 deletions

View file

@ -1540,10 +1540,7 @@ class Frame(object):
if caller in ('_PyCFunction_FastCallDict',
'_PyCFunction_FastCallKeywords'):
if caller == '_PyCFunction_FastCallKeywords':
arg_name = 'func_obj'
else:
arg_name = 'func'
arg_name = 'func'
# Within that frame:
# "func" is the local containing the PyObject* of the
# PyCFunctionObject instance