From febbf471bd550945621b470089b6c3dc872ae894 Mon Sep 17 00:00:00 2001 From: INADA Naoki Date: Sat, 24 Dec 2016 20:19:08 +0900 Subject: Issue #29049: Call _PyObject_GC_TRACK() lazily when calling Python function. Calling function is up to 5% faster. --- Include/frameobject.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Include/frameobject.h') diff --git a/Include/frameobject.h b/Include/frameobject.h index 00c50933dc..616c611c7e 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 */ -- cgit v1.2.1