summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2021-03-24 00:04:52 (GMT)
committerGitHub <noreply@github.com>2021-03-24 00:04:52 (GMT)
commita054f6b2b1d9f75edfb5ec2247bbf60f07491977 (patch)
tree0b135347a58fd61fb4621b292c64abcbaa4cf289 /Doc/whatsnew
parentd9692027f41ee7600fe401c066617ebfc8bac930 (diff)
downloadcpython-a054f6b2b1d9f75edfb5ec2247bbf60f07491977.zip
cpython-a054f6b2b1d9f75edfb5ec2247bbf60f07491977.tar.gz
cpython-a054f6b2b1d9f75edfb5ec2247bbf60f07491977.tar.bz2
bpo-43452: Document the PyType_Lookup optimizations in the What's New for 3.10 (GH-24949)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.10.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst
index 7ed43ad..97442aa 100644
--- a/Doc/whatsnew/3.10.rst
+++ b/Doc/whatsnew/3.10.rst
@@ -946,7 +946,6 @@ Optimizations
for more details. (Contributed by Victor Stinner and Pablo Galindo in
:issue:`38980`.)
-
* Function parameters and their annotations are no longer computed at runtime,
but rather at compilation time. They are stored as a tuple of strings at the
bytecode level. It is now around 2 times faster to create a function with
@@ -958,6 +957,10 @@ Optimizations
algorithm to avoid quadratic behavior on long strings. (Contributed
by Dennis Sweeney in :issue:`41972`)
+* Added micro-optimizations to ``_PyType_Lookup()`` to improve type attribute cache lookup
+ performance in the common case of cache hits. This makes the interpreter 1.04 times faster
+ in average (Contributed by Dino Viehland in :issue:`43452`)
+
Deprecated
==========