Message148297
More surprising is that, even ignoring the allocation cost, other operations on the memory area seem more expensive:
$ ./python -m timeit -s "b=bytearray(500000)" "b[:] = b"
-> python 3.3:
1000 loops, best of 3: 367 usec per loop
-> python 3.2:
10000 loops, best of 3: 185 usec per loop
(note how this is just a dump memcpy) |
|
Date |
User |
Action |
Args |
2011-11-25 00:52:33 | pitrou | set | recipients:
+ pitrou, eli.bendersky, flox, dmalcolm, neologix, python-dev, kaifeng |
2011-11-25 00:52:33 | pitrou | set | messageid: <1322182353.3.0.939754541302.issue11849@psf.upfronthosting.co.za> |
2011-11-25 00:52:32 | pitrou | link | issue11849 messages |
2011-11-25 00:52:32 | pitrou | create | |
|