Python too slow for real world

Robb Shecter shecter at darmstadt.gmd.de
Mon May 3 08:20:55 EDT 1999


Roy Smith wrote:

> Paul Prescod <paul at prescod.net> wrote:
> > It is a performance issue if you don't know that regexps are supposed to
> > be compiled.
>

Hi,

Sorry if this is obvious, but does the Regex class cache compilations?  I
couldn't find any info on this.  If it was, it would support subject matter
experts nicely, like someone else mentioned.  But even as a CS person, I like
how the Java "ORO" Regex Library has automatic Least Recently Used caching.
This lets application code be simpler, as well as making it easier to share
compiled expressions much more easily between objects.

- Robb





More information about the Python-list mailing list