[issue19801] Concatenating bytes is much slower than concatenating strings

R. David Murray report at bugs.python.org
Tue Nov 26 18:21:34 CET 2013


R. David Murray added the comment:

It is definitely not a good idea to rely on that optimization of += for string.  Obviously bytes doesn't have the same optimization.  (String didn't either for a while in Python3, and there was some controversy around adding it back exactly because one should not rely on it.)

----------
nosy: +r.david.murray

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


More information about the Python-bugs-list mailing list