[Python-Dev] Re: Re: 2.4 news reaches interesting places (original) (raw)

Marek "Baczek" Baczyński imbaczek at gmail.com
Mon Dec 13 22:03:36 CET 2004


On Mon, 13 Dec 2004 12:57:07 PST, Bill Janssen <janssen at parc.com> wrote:

Apparently the Python program, which applies the same re substitutions in the same order as the Perl program, takes 3 times as long to run. He thinks it's because of mutable strings in Perl -- that is, he thinks the string being modified (which is long, a whole file full of text) is modified in place in Perl, but has to be re-consed in Python.

Did he use re.compile?

-- { Marek Baczyński :: UIN 57114871 :: GG 161671 :: JID imbaczek at jabber.gda.pl } { http://www.vlo.ids.gda.pl/ | imbaczek at poczta fm | http://www.promode.org } .. .. .. .. ... ... ...... evolve or face extinction ...... ... ... .. .. .. ..



More information about the Python-Dev mailing list