Author pitrou
Recipients alanmcintyre, jcea, loewis, nadeem.vawda, pitrou, serhiy.storchaka
Date 2012-04-18.13:23:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334755428.26.0.697893413736.issue14371@psf.upfronthosting.co.za>
In-reply-to
Content
> `buf += data` is noticeably faster `b''.join()` in CPython.

Perhaps because your system's memory allocator is extremely good (or buf is always very small), but b''.join() is far more robust.
Another alternative is accumulating in a bytearray, since it uses overallocation for linear time appending.
History
Date User Action Args
2012-04-18 13:23:48pitrousetrecipients: + pitrou, loewis, jcea, alanmcintyre, nadeem.vawda, serhiy.storchaka
2012-04-18 13:23:48pitrousetmessageid: <1334755428.26.0.697893413736.issue14371@psf.upfronthosting.co.za>
2012-04-18 13:23:47pitroulinkissue14371 messages
2012-04-18 13:23:47pitroucreate