[New-bugs-announce] [issue27005] Faster float.fromhex()

Serhiy Storchaka report at bugs.python.org
Thu May 12 02:48:22 EDT 2016


New submission from Serhiy Storchaka:

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

----------
components: Interpreter Core
files: float_fromhex.patch
keywords: patch
messages: 265366
nosy: mark.dickinson, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Faster float.fromhex()
type: performance
versions: Python 3.6
Added file: http://bugs.python.org/file42824/float_fromhex.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27005>
_______________________________________


More information about the New-bugs-announce mailing list