]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-47067: Optimize calling GenericAlias objects (GH-31996)
authorpenguin_wwy <940375606@qq.com>
Mon, 21 Mar 2022 20:33:02 +0000 (04:33 +0800)
committerGitHub <noreply@github.com>
Mon, 21 Mar 2022 20:33:02 +0000 (16:33 -0400)
commit1ea055bd53ccf976e88018983a3c13447c4502be
treeb2c6e4d3b1f9db90c7b45eb6b69c8c6d20bda606
parent5c3201e146b251017cd77202015f47912ddcb980
bpo-47067: Optimize calling GenericAlias objects (GH-31996)

Use vectorcall, and replace `PyObject_SetAttrString` with `PyObject_SetAttr` and a global string.
Include/internal/pycore_global_strings.h
Include/internal/pycore_runtime_init.h
Misc/NEWS.d/next/Library/2022-03-20-17-15-56.bpo-47067.XXLnje.rst [new file with mode: 0644]
Objects/genericaliasobject.c