[issue13149] optimization for append-only StringIO
Martin v. Löwis
report at bugs.python.org
Wed Oct 12 17:57:50 CEST 2011
Martin v. Löwis <martin at v.loewis.de> added the comment:
It would be interesting to see how often the "bad" case triggers, i.e. that a write-only stringio sees any of the other methods invoked at all.
As a special case, you may consider that .truncate(0) doesn't really need to realize the buffer first.
I also wonder how much StringIO will be used in praxis, as opposed to BytesIO.
----------
nosy: +loewis
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13149>
_______________________________________
More information about the Python-bugs-list
mailing list