[issue8064] Large regex handling very slow on Linux

Jean-Paul Calderone report at bugs.python.org
Fri Mar 5 00:25:35 CET 2010


Jean-Paul Calderone <exarkun at divmod.com> added the comment:

I think it's likely that the test program does drastically different things on Linux than it does on OS X:

Python 2.6.4 (r264:75706, Dec  7 2009, 18:45:15)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import regextest
>>> len(regextest.makew())
93455
>>>

Compare to:

Python 2.6.1 (r261:67515, Jul  7 2009, 23:51:51)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import regextest
>>> len(regextest.makew())
47672
>>> 


If I modify it to use 65535 (sys.maxunicode on OS X) and then run it on Linux, it completes quite quickly.

----------
nosy: +exarkun

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8064>
_______________________________________


More information about the Python-bugs-list mailing list