diff options
author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2020-05-10 09:15:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-10 09:15:57 (GMT) |
commit | 86a93fddf72a2711aca99afa0c5374c8d6b4a321 (patch) | |
tree | ed7b1ce67e3c6b2abfcce7d28d06dfb67f78f7b6 /Misc | |
parent | 1c2fa781560608aa4be50c748d4b3f403cfa5035 (diff) | |
download | cpython-86a93fddf72a2711aca99afa0c5374c8d6b4a321.zip cpython-86a93fddf72a2711aca99afa0c5374c8d6b4a321.tar.gz cpython-86a93fddf72a2711aca99afa0c5374c8d6b4a321.tar.bz2 |
bpo-37986: Improve perfomance of PyLong_FromDouble() (GH-15611)
* bpo-37986: Improve perfomance of PyLong_FromDouble()
* Use strict bound check for safety and symmetry
* Remove possibly outdated performance claims
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2019-11-20-09-50-58.bpo-37986.o0lmA7.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2019-11-20-09-50-58.bpo-37986.o0lmA7.rst b/Misc/NEWS.d/next/Core and Builtins/2019-11-20-09-50-58.bpo-37986.o0lmA7.rst new file mode 100644 index 0000000..62446e3 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2019-11-20-09-50-58.bpo-37986.o0lmA7.rst @@ -0,0 +1,2 @@ +Improve performance of :c:func:`PyLong_FromDouble` for values that fit into +:c:type:`long`. |