Skip to content

Commit a054f6b

Browse files
authored
bpo-43452: Document the PyType_Lookup optimizations in the What's New for 3.10 (GH-24949)
1 parent d969202 commit a054f6b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Doc/whatsnew/3.10.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,6 @@ Optimizations
946946
for more details. (Contributed by Victor Stinner and Pablo Galindo in
947947
:issue:`38980`.)
948948
949-
950949
* Function parameters and their annotations are no longer computed at runtime,
951950
but rather at compilation time. They are stored as a tuple of strings at the
952951
bytecode level. It is now around 2 times faster to create a function with
@@ -958,6 +957,10 @@ Optimizations
958957
algorithm to avoid quadratic behavior on long strings. (Contributed
959958
by Dennis Sweeney in :issue:`41972`)
960959
960+
* Added micro-optimizations to ``_PyType_Lookup()`` to improve type attribute cache lookup
961+
performance in the common case of cache hits. This makes the interpreter 1.04 times faster
962+
in average (Contributed by Dino Viehland in :issue:`43452`)
963+
961964
Deprecated
962965
==========
963966

0 commit comments

Comments
 (0)