[issue43688] [C API] Support the limited C API in debug mode (Py_INCREF and Py_DECREF)
STINNER Victor
report at bugs.python.org
Fri Apr 2 08:46:22 EDT 2021
STINNER Victor <vstinner at python.org> added the comment:
I modified my PR 25131 to only implement Py_INCREF/Py_DECREF as opaque function calls under two conditions:
* Python is built in debug mode
* Py_LIMITED_API macro targets Python 3.10 or newer
So this PR 25131 now only has an impact on performance if Python is built in debug mode. Performance on Python built in release mode is not affected.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43688>
_______________________________________
More information about the Python-bugs-list
mailing list