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

@ -102,6 +102,13 @@ PyAPI_FUNC(PyObject *) _PyMethodDef_RawFastCallDict(
PyObject **args,
Py_ssize_t nargs,
PyObject *kwargs);
PyAPI_FUNC(PyObject *) _PyMethodDef_RawFastCallKeywords(
PyMethodDef *method,
PyObject *self,
PyObject **args,
Py_ssize_t nargs,
PyObject *kwnames);
#endif
PyAPI_FUNC(int) PyCFunction_ClearFreeList(void);