Precompiled regular expressions slower?

Sean 'Shaleh' Perry shalehperry at
Tue Feb 26 13:36:48 EST 2002

On 26-Feb-2002 Peter Bienstman wrote:
>> Perhaps Peter should post the relevant code so we can see what is actually
>> happening for ourselves?
> Here is the relevant portion of the code:

After changing things as Jon Ribbens explains did you get a sufficient speed

My only other comment would be one of style and efficiency.  In the loop you
check the line against numerous regexs.  Would each line really match more than
one or two of those?  Perhaps a few strategic calls to continue may help.

More information about the Python-list mailing list