This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients pitrou, serhiy.storchaka, vstinner
Date 2013-09-29.21:11:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1380489073.42.0.780447294453.issue19087@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2013-09-29 21:11:13pitrousetrecipients: + pitrou, vstinner, serhiy.storchaka
2013-09-29 21:11:13pitrousetmessageid: <1380489073.42.0.780447294453.issue19087@psf.upfronthosting.co.za>
2013-09-29 21:11:13pitroulinkissue19087 messages
2013-09-29 21:11:13pitroucreate