This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients pitrou, vstinner
Date 2011-10-11.01:17:32
SpamBayes Score 2.20578e-05
Marked as misclassified No
Message-id <1318295854.61.0.959309073941.issue13149@psf.upfronthosting.co.za>
In-reply-to
Content
io.StringIO is quite slower than ''.append() when used for mass concatenation (around 5x slower). This patch brings it to similar performance by deferring construction of the internal buffer until needed.

The problem is that it's very easy to disable the optimization by calling a method other than write() and getvalue().
History
Date User Action Args
2011-10-11 01:17:34pitrousetrecipients: + pitrou, vstinner
2011-10-11 01:17:34pitrousetmessageid: <1318295854.61.0.959309073941.issue13149@psf.upfronthosting.co.za>
2011-10-11 01:17:33pitroulinkissue13149 messages
2011-10-11 01:17:33pitroucreate