mirror of
https://github.com/python/cpython.git
synced 2025-09-13 12:17:24 +00:00
bpo-43452: Document the PyType_Lookup optimizations in the What's New for 3.10 (GH-24949)
This commit is contained in:
parent
d9692027f4
commit
a054f6b2b1
1 changed files with 4 additions and 1 deletions
|
@ -946,7 +946,6 @@ Optimizations
|
||||||
for more details. (Contributed by Victor Stinner and Pablo Galindo in
|
for more details. (Contributed by Victor Stinner and Pablo Galindo in
|
||||||
:issue:`38980`.)
|
:issue:`38980`.)
|
||||||
|
|
||||||
|
|
||||||
* Function parameters and their annotations are no longer computed at runtime,
|
* 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
|
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
|
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
|
algorithm to avoid quadratic behavior on long strings. (Contributed
|
||||||
by Dennis Sweeney in :issue:`41972`)
|
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
|
Deprecated
|
||||||
==========
|
==========
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue