Message145322
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(). |
|
Date |
User |
Action |
Args |
2011-10-11 01:17:34 | pitrou | set | recipients:
+ pitrou, vstinner |
2011-10-11 01:17:34 | pitrou | set | messageid: <1318295854.61.0.959309073941.issue13149@psf.upfronthosting.co.za> |
2011-10-11 01:17:33 | pitrou | link | issue13149 messages |
2011-10-11 01:17:33 | pitrou | create | |
|