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-30.20:22:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Other benchmarks for the new patch (exercising FIFO-like behaviour: some data is appended at one end, and popped at the other):

timeit -s "b=bytearray(100000);s=b'x'*100" "b[:100] = b''; b.extend(s)"
-> before: 4.07 usec per loop
-> after: 0.812 usec per loop

For comparison, popping from the end (LIFO-like):

timeit -s "b=bytearray(100000);s=b'x'*100" "b[-100:] = b''; b.extend(s)"
-> before: 0.894 usec per loop
-> after: 0.819 usec per loop
Date User Action Args
2013-09-30 20:22:15pitrousetrecipients: + pitrou, vstinner, serhiy.storchaka
2013-09-30 20:22:15pitrousetmessageid: <>
2013-09-30 20:22:15pitroulinkissue19087 messages
2013-09-30 20:22:15pitroucreate