Serhiy Storchaka added the comment:
Barry, please test re.search() with your changes.
$ ./python -m timeit -s 'import re; s = "a" * 100' 're.search("b", s)'
Unpatched: 500000 loops, best of 5: 529 nsec per loop
Patched: 50000 loops, best of 5: 7.46 usec per loop
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue31580>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com