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 ...... ... ... .. .. .. ..
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4