Author eli.bendersky
Recipients eli.bendersky, ncoghlan, pitrou
Date 2012-07-17.12:12:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1342527166.53.0.694574948468.issue15381@psf.upfronthosting.co.za>
In-reply-to
Content
From this pydev thread: http://mail.python.org/pipermail/python-dev/2012-July/120981.html

"BytesIO is actually missing an optimisation that is already used in
StringIO: the StringIO C implementation uses a fragment accumulator
internally, and collapses that into a single string object when
getvalue() is called. BytesIO is still using the old
"resize-the-buffer-as-you-go" strategy, and thus ends up repeatedly
reallocating the buffer as the data sequence grows incrementally.

It should be optimised to work the same way StringIO does (which is
effectively the same way that the monkeypatched version works)"
History
Date User Action Args
2012-07-17 12:12:46eli.benderskysetrecipients: + eli.bendersky, ncoghlan, pitrou
2012-07-17 12:12:46eli.benderskysetmessageid: <1342527166.53.0.694574948468.issue15381@psf.upfronthosting.co.za>
2012-07-17 12:12:45eli.benderskylinkissue15381 messages
2012-07-17 12:12:45eli.benderskycreate