summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorINADA Naoki <songofacandy@gmail.com>2016-12-24 11:19:08 (GMT)
committerINADA Naoki <songofacandy@gmail.com>2016-12-24 11:19:08 (GMT)
commit5a625d0aa6a6d9ec6574ee8344b41d63dcb9897e (patch)
tree10b9bb211b5cfdd80e1f42757f2773acd3d7f3cd /Include
parent2585443b6fc83dade775d2c18bfc2fd70dfde369 (diff)
downloadcpython-5a625d0aa6a6d9ec6574ee8344b41d63dcb9897e.zip
cpython-5a625d0aa6a6d9ec6574ee8344b41d63dcb9897e.tar.gz
cpython-5a625d0aa6a6d9ec6574ee8344b41d63dcb9897e.tar.bz2
Issue #29049: Call _PyObject_GC_TRACK() lazily when calling Python function.
Calling function is up to 5% faster.
Diffstat (limited to 'Include')
-rw-r--r--Include/frameobject.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Include/frameobject.h b/Include/frameobject.h
index 00c5093..616c611 100644
--- a/Include/frameobject.h
+++ b/Include/frameobject.h
@@ -60,7 +60,11 @@ PyAPI_DATA(PyTypeObject) PyFrame_Type;
#define PyFrame_Check(op) (Py_TYPE(op) == &PyFrame_Type)
PyAPI_FUNC(PyFrameObject *) PyFrame_New(PyThreadState *, PyCodeObject *,
- PyObject *, PyObject *);
+ PyObject *, PyObject *);
+
+/* only internal use */
+PyFrameObject* _PyFrame_New_NoTrack(PyThreadState *, PyCodeObject *,
+ PyObject *, PyObject *);
/* The rest of the interface is specific for frame objects */