This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients mark.dickinson, serhiy.storchaka
Date 2016-05-12.06:48:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1463035702.18.0.00292240428989.issue27005@psf.upfronthosting.co.za>
In-reply-to
Content
Proposed patch makes float.fromhex() faster for exact float.

$ ./python -m timeit -s "h = float.hex(1.23)" -- "float.fromhex(h)"

Unpatched: 1000000 loops, best of 3: 0.886 usec per loop
Patched:   1000000 loops, best of 3: 0.519 usec per loop
History
Date User Action Args
2016-05-12 06:48:22serhiy.storchakasetrecipients: + serhiy.storchaka, mark.dickinson
2016-05-12 06:48:22serhiy.storchakasetmessageid: <1463035702.18.0.00292240428989.issue27005@psf.upfronthosting.co.za>
2016-05-12 06:48:21serhiy.storchakalinkissue27005 messages
2016-05-12 06:48:21serhiy.storchakacreate