[issue15381] Optimize BytesIO to so less reallocations when written, similarly to StringIO

Antoine Pitrou report at bugs.python.org
Sat Jul 21 12:15:33 CEST 2012


Antoine Pitrou <pitrou at free.fr> added the comment:

> Hmm. Without the ability to reproduce this effect, it will be difficult for me to 
> get rid of him.

It's under 64-bit Linux, Intel Core i5 CPU. Are you sure you're testing
in non-debug mode?

That said, the numbers under Windows suggest me that Eli's original idea
(append and then join at the end) would be more robust.

----------

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


More information about the Python-bugs-list mailing list