Antoine Pitrou added the comment: Results under Windows:
- before: PCbuild\amd64\python.exe -m timeit "b=bytearray(100000)" "while b: b[-1:] = b''" 10 loops, best of 3: 74.8 msec per loop PCbuild\amd64\python.exe -m timeit "b=bytearray(100000)" "while b: b[:1] = b''" 10 loops, best of 3: 330 msec per loop - after: PCbuild\amd64\python.exe -m timeit "b=bytearray(100000)" "while b: b[-1:] = b''" 10 loops, best of 3: 73.9 msec per loop PCbuild\amd64\python.exe -m timeit "b=bytearray(100000)" "while b: b[:1] = b''" 10 loops, best of 3: 73.8 msec per loop ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19087> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com