Improve the description of the improvements in bpo-42202 (GH-24738)

This commit is contained in:
Pablo Galindo 2021-03-04 01:29:29 +00:00 committed by GitHub
parent 0632b1012d
commit 8747c1f233
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -903,8 +903,9 @@ Optimizations
* 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 100% faster to create a function with parameter
annotations. (Contributed by Yurii Karabas and Inada Naoki in :issue:`42202`)
bytecode level. It is now around 2 times faster to create a function with
parameter annotations. (Contributed by Yurii Karabas and Inada Naoki
in :issue:`42202`)
* Substring search functions such as ``str1 in str2`` and ``str2.find(str1)``
now sometimes use Crochemore & Perrin's "Two-Way" string searching