Message236388
After expanding PyArg_Parse for "i" and "D" codes above tests give following results:
$ ./python -m timeit "chr(0x20ac)"
1000000 loops, best of 3: 0.558 usec per loop
$ ./python -m timeit -s "from cmath import isnan; x = 1j" -- "isnan(x)"
1000000 loops, best of 3: 0.278 usec per loop
About twice in comparison with initial variant! |
|
Date |
User |
Action |
Args |
2015-02-21 20:02:04 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, scoder, larry, josh.r |
2015-02-21 20:02:04 | serhiy.storchaka | set | messageid: <1424548924.94.0.241203700709.issue23492@psf.upfronthosting.co.za> |
2015-02-21 20:02:04 | serhiy.storchaka | link | issue23492 messages |
2015-02-21 20:02:04 | serhiy.storchaka | create | |
|