New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Faster float.fromhex() #71192
Comments
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 |
LGTM |
New changeset 3b19660611a4 by Serhiy Storchaka in branch 'default': |
Thank you Mark. |
New changeset 1bae2a6bb37c by Serhiy Storchaka in branch 'default': |
A mistake in using PyObject_CallFunctionObjArgs() caused a crash in using fromhex() for subclasses. New tests added in bpo-23640 covers this case. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: