]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-121562: optimized hex_from_char (#121563)
authorBruno Lima <bdl1998@hotmail.com>
Sun, 14 Jul 2024 09:05:35 +0000 (06:05 -0300)
committerGitHub <noreply@github.com>
Sun, 14 Jul 2024 09:05:35 +0000 (10:05 +0100)
commit04130b290b545e64625c07dc8fa2709d17e70880
tree1d748d0be64a86c777a02e46188c3606c1ca9953
parentf6f4022a357f70f1c40945403065e81b6c2e4854
gh-121562: optimized hex_from_char (#121563)

Performance improvement to `float.fromhex`: use a lookup table
for computing the hexadecimal value of a character, in place of the
previous switch-case construct. Patch by Bruno Lima.
Misc/NEWS.d/next/Core and Builtins/2024-07-10-02-02-32.gh-issue-121562.8beIMi.rst [new file with mode: 0644]
Objects/floatobject.c