[issue19801] Concatenating bytes is much slower than concatenating strings
Antoine Pitrou
report at bugs.python.org
Tue Nov 26 18:23:52 CET 2013
Antoine Pitrou added the comment:
Indeed. If you want to concatenate a lot of bytes objects efficiently, there are three solutions:
- concatenate to a bytearray
- write to a io.BytesIO object
- use b''.join to concatenate all objects at once
----------
nosy: +pitrou
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19801>
_______________________________________
More information about the Python-bugs-list
mailing list