[Python-Dev] Revising RE docs

Guido van Rossum guido at python.org
Thu Sep 1 19:09:30 CEST 2005

On 8/31/05, Stephen J. Turnbull <stephen at xemacs.org> wrote:
> >>>>> "Michael" == Michael Chermside <mcherm at mcherm.com> writes:
>     Michael> (2) is what we have today, but I would prefer (1) to
>     Michael> gently encourage people to use the precompiled objects
>     Michael> (which are distinctly faster when re-used).
> Didn't Fredrik Lundh strongly imply that implicitly compiled objects
> are cached?  That's a pretty big speed up right there.

What happened to RTSL? ("Read the Source, Luke" :)

They *are* cached and there is no cost to using the functions instead
of the methods unless you have so many regexps in your program that
the cache is cleared (the limit is 100).

--Guido van Rossum (home page: http://www.python.org/~guido/)

More information about the Python-Dev mailing list