Author serhiy.storchaka
Recipients josh.r, larry, scoder, serhiy.storchaka
Date 2015-02-21.20:02:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1424548924.94.0.241203700709.issue23492@psf.upfronthosting.co.za>
In-reply-to
Content
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!
History
Date User Action Args
2015-02-21 20:02:04serhiy.storchakasetrecipients: + serhiy.storchaka, scoder, larry, josh.r
2015-02-21 20:02:04serhiy.storchakasetmessageid: <1424548924.94.0.241203700709.issue23492@psf.upfronthosting.co.za>
2015-02-21 20:02:04serhiy.storchakalinkissue23492 messages
2015-02-21 20:02:04serhiy.storchakacreate