Is Perl *that* good?
Steve Lamb
grey at despair.dmiyu.org
Wed Apr 28 19:32:18 EDT 2004
On 2004-04-28, Carl Banks <imbosol at aerojockey.invalid> wrote:
> Because if regexp objects are local, they have to be recompiled every
> time you call the function. If you're doing that, you could be taking
> a performance hit. I guess it depends on your functional style,
> though. If your scripts have only one or two functions where all the
> regexps are and it only gets called a few times, then it probably
> won't matter too much to you.
Hrm, this gives me a hint on why one of my work scripts seems to be
running so slowly. I think I might be compiling REs every pass and it
shouldn't be.
--
Steve C. Lamb | I'm your priest, I'm your shrink, I'm your
PGP Key: 8B6E99C5 | main connection to the switchboard of souls.
-------------------------------+---------------------------------------------
More information about the Python-list
mailing list