Message294579
| 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. |
|