[Tutor] Python2 speed vs Python1.5.2

Rob Andrews randrews@planhouse.com
Wed, 23 May 2001 13:11:28 -0500


3;-> I just finished a small script that uses the re module for regular
3;-> expression processing.  It's a very simple script that
3;-> parses a text
3;-> file and does a re.sub then saves the new file out 1000
3;-> times. I ran the
3;-> script under Python2.0 and Python1.5.2 and found that
3;-> Python1.5.2 took
3;-> 4secs while 2.0 took 15secs..  Any answer why Python2.0 is slower?
3;->
3;-> Scott
3;->

Can you provide a little more info, such as which OS you are running on and
maybe the source to the script?

Rob

Got Python?
http://www.lowerstandard.com/python/pythonsource.html