mirror of
https://github.com/python/cpython.git
synced 2025-10-03 13:45:29 +00:00
Improve the description of the improvements in bpo-42202 (GH-24738)
This commit is contained in:
parent
0632b1012d
commit
8747c1f233
1 changed files with 3 additions and 2 deletions
|
@ -903,8 +903,9 @@ Optimizations
|
||||||
|
|
||||||
* 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 100% faster to create a function with parameter
|
bytecode level. It is now around 2 times faster to create a function with
|
||||||
annotations. (Contributed by Yurii Karabas and Inada Naoki in :issue:`42202`)
|
parameter annotations. (Contributed by Yurii Karabas and Inada Naoki
|
||||||
|
in :issue:`42202`)
|
||||||
|
|
||||||
* Substring search functions such as ``str1 in str2`` and ``str2.find(str1)``
|
* Substring search functions such as ``str1 in str2`` and ``str2.find(str1)``
|
||||||
now sometimes use Crochemore & Perrin's "Two-Way" string searching
|
now sometimes use Crochemore & Perrin's "Two-Way" string searching
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue