]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-91432: Specialize FOR_ITER (GH-91713)
authorDennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
Tue, 21 Jun 2022 10:19:26 +0000 (06:19 -0400)
committerGitHub <noreply@github.com>
Tue, 21 Jun 2022 10:19:26 +0000 (11:19 +0100)
commit5fcfdd87c9b5066a581d3ccb4b2fede938f343ec
tree8d333af15ee960d109d32163e005beefb2a16900
parentc735d545343c3ab002c62596b2fb2cfa4488b0af
GH-91432: Specialize FOR_ITER (GH-91713)

* Adds FOR_ITER_LIST and FOR_ITER_RANGE specializations.

* Adds _PyLong_AssignValue() internal function to avoid temporary boxing of ints.
22 files changed:
Include/internal/pycore_code.h
Include/internal/pycore_list.h
Include/internal/pycore_long.h
Include/internal/pycore_opcode.h
Include/internal/pycore_range.h [new file with mode: 0644]
Include/opcode.h
Lib/dis.py
Lib/importlib/_bootstrap_external.py
Lib/opcode.py
Lib/test/test_dis.py
Makefile.pre.in
Misc/NEWS.d/next/Core and Builtins/2022-04-24-02-22-10.gh-issue-91432.YPJAK6.rst [new file with mode: 0644]
Objects/frameobject.c
Objects/listobject.c
Objects/longobject.c
Objects/rangeobject.c
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters
Programs/test_frozenmain.h
Python/ceval.c
Python/opcode_targets.h
Python/specialize.c