]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-89279: In ceval.c, redefine some macros for speed (#32387)
authorGuido van Rossum <guido@python.org>
Fri, 22 Apr 2022 14:46:26 +0000 (07:46 -0700)
committerGitHub <noreply@github.com>
Fri, 22 Apr 2022 14:46:26 +0000 (07:46 -0700)
commit2f233fceae9a0c5e66e439bc0169b36547ba47c3
treed8cea10bcf465abee72d35f0a82382ac2adc9ff5
parent9fe82d0b70d9d90ca78d6bacdc2e5eb2b3278e23
gh-89279: In ceval.c, redefine some macros for speed (#32387)

Macros Py_DECREF, Py_XDECREF, Py_IS_TYPE, _Py_atomic_load_32bit_impl
and _Py_DECREF_SPECIALIZED are redefined as macros
that completely replace the inline functions of the same name.
These three came out in the top four of functions that (in MSVC)
somehow weren't inlined.

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
Misc/NEWS.d/next/Core and Builtins/2022-04-13-22-03-04.gh-issue-89279.-jAVxZ.rst [new file with mode: 0644]
Python/ceval.c