Author skrah
Recipients ezio.melotti, jcea, loewis, skrah, vstinner
Date 2011-12-11.23:36:34
SpamBayes Score 1.82767e-07
Marked as misclassified No
Message-id <>
Sorry, the title of the issue isn't correct any more. The revised
issue is that in 3.3

a) outfil.write("%s\n" % t)

is about 11% slower than in Python2.7 and 8% slower than in Python3.2.

On the other hand in 3.3 the hack

b) outfil.write(str(t)); outfil.write('\n') 

runs about as fast as a) in 3.2.

This doesn't necessarily show up in microbenchmarks with timeit, so
I thought I'd leave this open for others to see (and comment).

But if I understand correctly, the slowdown in string formatting is
expected, so we can indeed close this.
Date User Action Args
2011-12-11 23:36:35skrahsetrecipients: + skrah, loewis, jcea, vstinner, ezio.melotti
2011-12-11 23:36:35skrahsetmessageid: <>
2011-12-11 23:36:34skrahlinkissue13570 messages
2011-12-11 23:36:34skrahcreate