Message198731
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:15 | pitrou | set | recipients:
+ pitrou, vstinner, serhiy.storchaka |
2013-09-30 20:22:15 | pitrou | set | messageid: <1380572535.88.0.151480383002.issue19087@psf.upfronthosting.co.za> |
2013-09-30 20:22:15 | pitrou | link | issue19087 messages |
2013-09-30 20:22:15 | pitrou | create | |
|