[issue19329] Faster compiling of big charset regexpes

2013-10-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +re doesn't work with big charsets ___ Python tracker ___ ___ Python-bugs-list mailing

[issue19329] Faster compiling of big charset regexpes

2013-10-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Here is a patch which speed up compiling of regular expressions with big charsets. Microbenchmark: $ ./python -m timeit "from sre_compile import compile; r = '[%s]' % ''.join(map(chr, range(256, 2**16, 255)))" "compile(r, 0)" Unpatched (but with fixed is