Message224697
If such changes are acceptable, here is a part of my large patch fo modernizing stdlib sources.
Some microbenchmarks:
$ ./python -m timeit -s "from uuid import NAMESPACE_DNS as u" -- "u.bytes"
$ ./python -m timeit -s "from uuid import NAMESPACE_DNS as u" -- "u.bytes_le"
$ ./python -m timeit -s "from uuid import UUID" -- "UUID(bytes_le=b'abcdefghijklmnop')"
Before patch:
10000 loops, best of 3: 66.9 usec per loop
10000 loops, best of 3: 102 usec per loop
10000 loops, best of 3: 65.2 usec per loop
After patch:
100000 loops, best of 3: 3.98 usec per loop
100000 loops, best of 3: 10.8 usec per loop
10000 loops, best of 3: 32.1 usec per loop |
|
Date |
User |
Action |
Args |
2014-08-04 08:09:00 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, ronaldoussoren, alex, kevinlondon |
2014-08-04 08:09:00 | serhiy.storchaka | set | messageid: <1407139740.79.0.55419761126.issue22131@psf.upfronthosting.co.za> |
2014-08-04 08:09:00 | serhiy.storchaka | link | issue22131 messages |
2014-08-04 08:09:00 | serhiy.storchaka | create | |
|