]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-37207: Use PEP 590 vectorcall to speed up tuple() (GH-18936)
authorDong-hee Na <donghee.na92@gmail.com>
Fri, 13 Mar 2020 13:57:00 +0000 (22:57 +0900)
committerGitHub <noreply@github.com>
Fri, 13 Mar 2020 13:57:00 +0000 (14:57 +0100)
commit9ee88cde1abf7f274cc55a0571b1c2cdb1263743
tree054a0854e660a4636136afe6c6158b94d8328589
parent3f2f4fefca388bc62fc2a7d07cb6ef24197c84bd
bpo-37207: Use PEP 590 vectorcall to speed up tuple() (GH-18936)

Master:

./python.exe -m pyperf timeit "tuple((1, 2, 3, 4, 5))"
Mean +- std dev: 361 ns +- 15 ns

PEP-590:

./python.exe -m pyperf timeit "tuple((1, 2, 3, 4, 5))"
Mean +- std dev: 203 ns +- 13 ns
Misc/NEWS.d/next/Core and Builtins/2020-03-12-02-41-12.bpo-37207.ye7OM3.rst [new file with mode: 0644]
Objects/tupleobject.c