[pypy-issue] [issue1052] pypy slower
Armin Rigo
tracker at bugs.pypy.org
Thu Feb 16 15:40:06 CET 2012
Armin Rigo <armin.rigo at gmail.com> added the comment:
A major hit for pypy is that it needs to compile a new regexp pattern every time
chkFunc() is called. With the following change:
def chkFunc(lstFD, func ):
mFunc= "WXNET_EXPORT\\(.*\\)(?:\r\n)? *([0-9a-zA-Z_]+)\\("
for fd in lstFD:
for i in re.finditer(mFunc, fd ):
if i.group(1) == func:
#...sequel unchanged...
then it becomes twice faster than CPython (and produces the same result). I
know that it's still a problem, but I pointed it out as a quick workaround and
as a direction towards future work in pypy.
----------
nosy: +arigo
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1052>
________________________________________
More information about the pypy-issue
mailing list