diff options
author | INADA Naoki <songofacandy@gmail.com> | 2016-12-24 20:19:08 +0900 |
---|---|---|
committer | INADA Naoki <songofacandy@gmail.com> | 2016-12-24 20:19:08 +0900 |
commit | febbf471bd550945621b470089b6c3dc872ae894 (patch) | |
tree | b07486e53a983e83379fb435c668e9386fb974d8 /Include/frameobject.h | |
parent | 01918fc00e2dc9846abc9fcc70750f688221d59e (diff) | |
download | cpython-febbf471bd550945621b470089b6c3dc872ae894.tar.gz |
Issue #29049: Call _PyObject_GC_TRACK() lazily when calling Python function.
Calling function is up to 5% faster.
Diffstat (limited to 'Include/frameobject.h')
-rw-r--r-- | Include/frameobject.h | 6 |
1 files changed, 5 insertions, 1 deletions
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 */ |