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 <rep...@bugs.python.org>
<http://bugs.python.org/issue23492>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to