[issue30468] Propagate zipfile.py pypy issue #905 patch to CPython 3.7

Serhiy Storchaka report at bugs.python.org
Sat May 27 01:11:26 EDT 2017


Serhiy Storchaka added the comment:

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.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30468>
_______________________________________


More information about the Python-bugs-list mailing list