Message 149728 - Python tracker

Message149728

Author vstinner
Recipients Boris.FELD, collinwinter, ezio.melotti, flox, loewis, pitrou, vstinner
Date 2011-12-18.00:59:59
SpamBayes Score 0.00019080356
Marked as misclassified No
Message-id <1324169999.98.0.690551691801.issue13621@psf.upfronthosting.co.za>
In-reply-to
Content
> "...text.with.2000.lines...replace("\n", " ") (*10): -37.668161%

I also noticed a difference between Python 3.2 and 3.3, but Python 3.3 is 13% *faster* (and not slower). This benchmark is not really representative because stringbench only tests .replace() with ASCII. Replace requires to scan the result to check the next maximum character, except for ASCII. So expect a performance regression... except for ASCII.
History
Date User Action Args
2011-12-18 01:00:00vstinnersetrecipients: + vstinner, loewis, collinwinter, pitrou, ezio.melotti, flox, Boris.FELD
2011-12-18 00:59:59vstinnersetmessageid: <1324169999.98.0.690551691801.issue13621@psf.upfronthosting.co.za>
2011-12-18 00:59:59vstinnerlinkissue13621 messages
2011-12-18 00:59:59vstinnercreate