diff options
author | Petr Viktorin <encukou@gmail.com> | 2020-02-18 15:13:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-18 15:13:17 (GMT) |
commit | 6e35da976370e7c2e028165c65d7d7d42772a71f (patch) | |
tree | d589a75b9f8f2d1f1bf73947feb57a6b83cffebb /Misc | |
parent | 24bba8cf5b8db25c19bcd1d94e8e356874d1c723 (diff) | |
download | cpython-6e35da976370e7c2e028165c65d7d7d42772a71f.zip cpython-6e35da976370e7c2e028165c65d7d7d42772a71f.tar.gz cpython-6e35da976370e7c2e028165c65d7d7d42772a71f.tar.bz2 |
bpo-37207: Use vectorcall for range() (GH-18464)
This continues the `range()` part of #13930. The complete pull request is stalled on discussions around dicts, but `range()` should not be controversial. (And I plan to open PRs for other parts if this is merged.)
On top of Mark's change, I unified `range_new` and `range_vectorcall`, which had a lot of duplicate code.
https://bugs.python.org/issue37207
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2019-06-09-10-54-31.bpo-37207.bLjgLR.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2019-06-09-10-54-31.bpo-37207.bLjgLR.rst b/Misc/NEWS.d/next/Core and Builtins/2019-06-09-10-54-31.bpo-37207.bLjgLR.rst new file mode 100644 index 0000000..c20d48a --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2019-06-09-10-54-31.bpo-37207.bLjgLR.rst @@ -0,0 +1,2 @@ +Speed up calls to ``range()`` by about 30%, by using the +PEP 590 ``vectorcall`` calling convention. Patch by Mark Shannon. |