summaryrefslogtreecommitdiff
path: root/Include
diff options
context:
space:
mode:
authorINADA Naoki <songofacandy@gmail.com>2017-02-03 07:43:03 +0900
committerINADA Naoki <songofacandy@gmail.com>2017-02-03 07:43:03 +0900
commit99c092a531abf57a8f5c37356dc6971cdfed497a (patch)
tree3fdbd35d564003f85f11a9e1bf37baee3f932321 /Include
parent039f1495e853018c3a7024b843a138f8b4161b6d (diff)
downloadcpython-99c092a531abf57a8f5c37356dc6971cdfed497a.tar.gz
Issue #29263: LOAD_METHOD support for C methods
Calling builtin method is at most 10% faster.
Diffstat (limited to 'Include')
-rw-r--r--Include/descrobject.h3
-rw-r--r--Include/methodobject.h7
2 files changed, 10 insertions, 0 deletions
diff --git a/Include/descrobject.h b/Include/descrobject.h
index 013d64521f..cb43174838 100644
--- a/Include/descrobject.h
+++ b/Include/descrobject.h
@@ -90,6 +90,9 @@ PyAPI_FUNC(PyObject *) PyDescr_NewMember(PyTypeObject *,
PyAPI_FUNC(PyObject *) PyDescr_NewGetSet(PyTypeObject *,
struct PyGetSetDef *);
#ifndef Py_LIMITED_API
+
+PyAPI_FUNC(PyObject *) _PyMethodDescr_FastCallKeywords(
+ PyObject *descrobj, PyObject **stack, Py_ssize_t nargs, PyObject *kwnames);
PyAPI_FUNC(PyObject *) PyDescr_NewWrapper(PyTypeObject *,
struct wrapperbase *, void *);
#define PyDescr_IsData(d) (Py_TYPE(d)->tp_descr_set != NULL)
diff --git a/Include/methodobject.h b/Include/methodobject.h
index 7370419c39..b5c4e83730 100644
--- a/Include/methodobject.h
+++ b/Include/methodobject.h
@@ -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);