[issue45462] Speed up re.match with pre-compiled patterns
Serhiy Storchaka
report at bugs.python.org
Thu Oct 14 13:58:16 EDT 2021
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
Calling re.math() with a pre-compiled pattern is an uncommon case. Common cases are calling re.math() with a string pattern and calling the math() method of a pre-compiled pattern.
Your change speeds up an uncommon case but slows down a common case.
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45462>
_______________________________________
More information about the Python-bugs-list
mailing list