diff options
author | Brandt Bucher <brandtbucher@microsoft.com> | 2022-04-15 16:26:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-15 16:26:44 (GMT) |
commit | 1b34b5687b20a54cff2158c8660201e7377dec21 (patch) | |
tree | 44790f7a643402046501c277d704266ca50e847b /Doc | |
parent | d104f4d21f735693ea93fe65ea4b4e1aa1779343 (diff) | |
download | cpython-1b34b5687b20a54cff2158c8660201e7377dec21.zip cpython-1b34b5687b20a54cff2158c8660201e7377dec21.tar.gz cpython-1b34b5687b20a54cff2158c8660201e7377dec21.tar.bz2 |
gh-91404: Use computed gotos and reduce indirection in re (#91495)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/whatsnew/3.11.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index 9f7f6f5..a5a5268 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -520,6 +520,12 @@ Optimizations becomes 272 bytes from 352 bytes on 64bit platform. (Contributed by Inada Naoki in :issue:`46845`.) +* :mod:`re`'s regular expression matching engine has been partially refactored, + and now uses computed gotos (or "threaded code") on supported platforms. As a + result, Python 3.11 executes the `pyperformance regular expression benchmarks + <https://pyperformance.readthedocs.io/benchmarks.html#regex-dna>`_ up to 10% + faster than Python 3.10. + Faster CPython ============== |