mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
Issue #29263: LOAD_METHOD support for C methods
Calling builtin method is at most 10% faster.
This commit is contained in:
parent
144fff8b90
commit
5566bbb8d5
8 changed files with 88 additions and 36 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue