]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-37986: Improve perfomance of PyLong_FromDouble() (GH-15611)
authorSergey Fedoseev <fedoseev.sergey@gmail.com>
Sun, 10 May 2020 09:15:57 +0000 (14:15 +0500)
committerGitHub <noreply@github.com>
Sun, 10 May 2020 09:15:57 +0000 (10:15 +0100)
commit86a93fddf72a2711aca99afa0c5374c8d6b4a321
treeed7b1ce67e3c6b2abfcce7d28d06dfb67f78f7b6
parent1c2fa781560608aa4be50c748d4b3f403cfa5035
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>
Misc/NEWS.d/next/Core and Builtins/2019-11-20-09-50-58.bpo-37986.o0lmA7.rst [new file with mode: 0644]
Objects/floatobject.c
Objects/longobject.c