[WIP] bpo-45490: Convert static inline to macros by vstinner · Pull Request #29728 · python/cpython
-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
Conversation
Convert static inline functions to macros to run a benchmark:
- PyObject_TypeCheck()
- PyType_Check()
- PyType_CheckExact()
- PyType_HasFeature()
- PyVectorcall_NARGS()
- Py_DECREF()
- Py_INCREF()
- Py_IS_TYPE()
- Py_NewRef()
- Py_REFCNT()
- Py_SIZE()
- Py_TYPE()
- Py_XDECREF()
- Py_XINCREF()
Note: Py_XNewRef() remains a static inline function.
Convert static inline functions to macros to run a benchmark: * PyObject_TypeCheck() * PyType_Check() * PyType_CheckExact() * PyType_HasFeature() * PyVectorcall_NARGS() * Py_DECREF() * Py_INCREF() * Py_IS_TYPE() * Py_NewRef() * Py_REFCNT() * Py_SIZE() * Py_TYPE() * Py_XDECREF() * Py_XINCREF() Note: Py_XNewRef() remains a static inline function.
"Check if generated files are up to date" CI test failed with:
Some extra declarations were found in "Include/Python.h" with Py_LIMITED_API:
- _PyDebug_PrintTotalRefs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters