summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorDennis Sweeney <36520290+sweeneyde@users.noreply.github.com>2022-04-19 18:02:19 (GMT)
committerGitHub <noreply@github.com>2022-04-19 18:02:19 (GMT)
commitda6c78584b1f45ce3766bf7f27fb033169715292 (patch)
treeaadde6ee2f5323357a7e0e8eff7a97f1fd44ec4b /Misc
parentab0d35d70dfe0b4c11583f8f735a8cc49b58c58b (diff)
downloadcpython-da6c78584b1f45ce3766bf7f27fb033169715292.zip
cpython-da6c78584b1f45ce3766bf7f27fb033169715292.tar.gz
cpython-da6c78584b1f45ce3766bf7f27fb033169715292.tar.bz2
gh-90667: Add specializations of Py_DECREF when types are known (GH-30872)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2022-01-25-05-39-38.bpo-46509.ljrqrc.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2022-01-25-05-39-38.bpo-46509.ljrqrc.rst b/Misc/NEWS.d/next/Core and Builtins/2022-01-25-05-39-38.bpo-46509.ljrqrc.rst
new file mode 100644
index 0000000..e19ce0a
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2022-01-25-05-39-38.bpo-46509.ljrqrc.rst
@@ -0,0 +1 @@
+Add type-specialized versions of the ``Py_DECREF()``, and use them for ``float``, ``int``, ``str``, ``bool``, and ``None`` to avoid pointer-chasing at runtime where types are known at C compile time.