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