[issue23492] Argument Clinic: improve generated parser for 1-argument functions
Serhiy Storchaka
report at bugs.python.org
Sat Feb 21 21:02:04 CET 2015
Serhiy Storchaka added the comment:
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!
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23492>
_______________________________________
More information about the Python-bugs-list
mailing list