Python too slow for real world

Roy Smith roy at popmail.med.nyu.edu
Sat Apr 24 12:57:44 EDT 1999


Paul Prescod <paul at prescod.net> wrote:
> One benefit would be that the compiler could compile regexps at the same
> time everything else is being compiled.

It is extremely rare that regex compilation time is a major issue.  If
you're using a regex inside your inner loop and the amount of data you
feed through it is large enough to matter, you should be compiling it
yourself outside the loop.  It's still done at run-time, but it's only
done once so it's almost certainly a trivial amount of time devoted to
that.




More information about the Python-list mailing list