Serhiy Storchaka added the comment:

$ ./python -m timeit -s "import re; p = re.compile(r'[a-z]|[0-9]'); s = ' 
'*10000+'x'"  "p.search(s)"
Unpatched:  500 loops, best of 5: 732 usec per loop
Patched:    1000 loops, best of 5: 279 usec per loop

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30340>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to