[Python-Dev] SRE 0.9.8 benchmarks (original) (raw)

Andrew Kuchling akuchlin@mems-exchange.org
Wed, 2 Aug 2000 18:00:59 -0400


On Wed, Aug 02, 2000 at 11:37:52PM +0200, Fredrik Lundh wrote:

-- SRE is usually faster than the old RE module (PRE).

Once the compiler is translated to C, it might be worth considering making SRE available as a standalone library for use outside of Python. Most other regex libraries either don't do Perl's extensions, or they don't do Unicode. Bonus points if you can get the Perl6 team interested in it.

Hmm... here's an old problem that's returned (recursion on repeated group matches, I expect):

p=re.compile('(x)*') p <SRE_Pattern object at 0x8127048> p.match(500000*'x') Segmentation fault (core dumped)

--amk