Regex speed

Erik Heneryd erik at heneryd.com
Sat Oct 30 18:31:41 CEST 2004


Reinhold Birkenfeld wrote:
> Original:                       2,579 sec
> sub method aliased to variable: 2,542 sec
> everything stuffed in function: 2,422 sec
> 
> Without regex substitution:     0,523 sec
> (but _with_ re.compile calls,
>  so this can't be the problem)

Ah, thought you said something about compile() being the timesink, but I 
guess I misunderstood...


Erik




More information about the Python-list mailing list