summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2019-01-12 06:26:34 (GMT)
committerGitHub <noreply@github.com>2019-01-12 06:26:34 (GMT)
commitd0d3e99120b19a4b800f0f381b2807c93aeecf0e (patch)
tree03934060f807cf8027fe8542dc1ca003ce27879d /Misc
parent793426687509be24a42663a27e568cc92dcc07f6 (diff)
downloadcpython-d0d3e99120b19a4b800f0f381b2807c93aeecf0e.zip
cpython-d0d3e99120b19a4b800f0f381b2807c93aeecf0e.tar.gz
cpython-d0d3e99120b19a4b800f0f381b2807c93aeecf0e.tar.bz2
bpo-35719: Optimize multi-argument math functions. (GH-11527)
Use the fast call convention for math functions atan2(), copysign(), hypot() and remainder() and inline unpacking arguments. This sped up them by 1.3--2.5 times.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2019-01-11-20-21-59.bpo-35719.qyRcpE.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-01-11-20-21-59.bpo-35719.qyRcpE.rst b/Misc/NEWS.d/next/Library/2019-01-11-20-21-59.bpo-35719.qyRcpE.rst
new file mode 100644
index 0000000..e46e142
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2019-01-11-20-21-59.bpo-35719.qyRcpE.rst
@@ -0,0 +1,2 @@
+Sped up multi-argument :mod:`math` functions atan2(), copysign(),
+remainder() and hypot() by 1.3--2.5 times.