Re: [Python-Dev] Re: Re: 2.4 news reaches interesting places
Dec. 13, 2004
9:03 p.m.
On Mon, 13 Dec 2004 12:57:07 PST, Bill Janssen <janssen@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@jabber.gda.pl } { http://www.vlo.ids.gda.pl/ | imbaczek at poczta fm | http://www.promode.org } .. .. .. .. ... ... ...... evolve or face extinction ...... ... ... .. .. .. ..
7820
Age (days ago)
7820
Last active (days ago)
0 comments
1 participants
participants (1)
-
Marek "Baczek" Baczyński