Re: re.I slowness

2006-03-30 Thread Paul McGuire
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > We process a lot of messages in a file based on some regex pattern(s) > we have in a db. > If I compile the regex using re.I, the processing time is substantially > more than if I > don't i.e using re.I is slow. > > However, more surpris

re.I slowness

2006-03-30 Thread vvikram
We process a lot of messages in a file based on some regex pattern(s) we have in a db. If I compile the regex using re.I, the processing time is substantially more than if I don't i.e using re.I is slow. However, more surprisingly, if we do something on the lines of : s = s = s.lower() t = dict(