[pypy-issue] [issue1347] Perf problem with many regular expressions

Armin Rigo tracker at bugs.pypy.org
Wed Dec 4 11:41:49 CET 2013


Armin Rigo <armin.rigo at gmail.com> added the comment:

After looking at it, it seems that the problem comes from having a single place
in Python source code (the line calling regexp.search()) that can actually
invoke a large number of different regexps.  So far, this is done with a chain
of 'guard_value' that linearly search which of the jit-compiled regexps it is. 
My guess is that it doesn't occur often in real code, but I agree that it's
nevertheless an issue that needs fixing.  This is a special case of
https://bugs.pypy.org/issue1565.

----------
nosy: +arigo

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1347>
________________________________________


More information about the pypy-issue mailing list