[issue27005] Faster float.fromhex()

2016-05-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: A mistake in using PyObject_CallFunctionObjArgs() caused a crash in using fromhex() for subclasses. New tests added in issue23640 covers this case. -- ___ Python tracker ___

[issue27005] Faster float.fromhex()

2016-05-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1bae2a6bb37c by Serhiy Storchaka in branch 'default': Issue #27005: Fixed the call of PyObject_CallFunctionObjArgs(). https://hg.python.org/cpython/rev/1bae2a6bb37c -- ___ Python tracker

[issue27005] Faster float.fromhex()

2016-05-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3b19660611a4 by Serhiy Storchaka in branch 'default': Issue #27005: Optimized the float.fromhex() class method for exact float. https://hg.python.org/cpython/rev/3b19660611a4 -- nosy: +python-dev ___ Pyth

[issue27005] Faster float.fromhex()

2016-05-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Mark. -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue27005] Faster float.fromhex()

2016-05-12 Thread Mark Dickinson
Mark Dickinson added the comment: LGTM -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue27005] Faster float.fromhex()

2016-05-11 Thread Serhiy Storchaka
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: 100 loops, best of 3: 0.886 usec per loop Patched: 100 loops, best of 3: 0.519 usec per loop -- co