[issue15381] Optimize BytesIO to do less reallocations when written, similarly to StringIO
Serhiy Storchaka
report at bugs.python.org
Thu Aug 14 19:26:45 CEST 2014
Serhiy Storchaka added the comment:
Benchmark from issue22003:
$ ./python0 -m timeit -s 'import i' 'i.readlines()'
Before patch: 10 loops, best of 3: 36.1 msec per loop
After patch: 10 loops, best of 3: 27.5 msec per loop
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15381>
_______________________________________
More information about the Python-bugs-list
mailing list