Message198671
Oh, by the way:
> $ ./python -m timeit "b = bytearray(); a = b'x'" "for i in range(10000): b += a" "bytes(b)"
I'm not sure that it is what you expected: bytearray() is only initialized once ("setup" of timeit). You probably want to reinitialize at each loop. |
|
Date |
User |
Action |
Args |
2013-09-29 23:03:17 | vstinner | set | recipients:
+ vstinner, pitrou, serhiy.storchaka |
2013-09-29 23:03:17 | vstinner | set | messageid: <1380495797.62.0.257709188461.issue19087@psf.upfronthosting.co.za> |
2013-09-29 23:03:17 | vstinner | link | issue19087 messages |
2013-09-29 23:03:17 | vstinner | create | |
|