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 serhiy.storchaka
Recipients alanmcintyre, alecsandru.patrascu, serhiy.storchaka, shubhar, twouters
Date 2017-05-27.05:11:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1495861886.09.0.855686396386.issue30468@psf.upfronthosting.co.za>
In-reply-to
Content
The reason of using bytes concatenating rather than accumulating in the list, is that in most cases one of arguments is an empty bytes object (appending to the empty buffer or uncompressing a file with large compression block), and this case is optimized in CPython. In mos cases there is at most one nontrivial bytes concatenation per read operation, and using b''.join() is slower in that case.
History
Date User Action Args
2017-05-27 05:11:26serhiy.storchakasetrecipients: + serhiy.storchaka, twouters, alanmcintyre, alecsandru.patrascu, shubhar
2017-05-27 05:11:26serhiy.storchakasetmessageid: <1495861886.09.0.855686396386.issue30468@psf.upfronthosting.co.za>
2017-05-27 05:11:26serhiy.storchakalinkissue30468 messages
2017-05-27 05:11:25serhiy.storchakacreate