]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45963: Make space for the InterpreterFrame of a generator in that generator....
authorMark Shannon <mark@hotpy.org>
Mon, 6 Dec 2021 10:13:49 +0000 (10:13 +0000)
committerGitHub <noreply@github.com>
Mon, 6 Dec 2021 10:13:49 +0000 (10:13 +0000)
commit299483c95d601ddcfdce2f96418b6499c1fc7b9f
treecb367a04d11b54d312305996bbc1039e1a47c929
parentf34d181fa15e1f082140a4e4a8fa3b77118f8e98
bpo-45963: Make space for the InterpreterFrame of a generator in that generator. (GH-29891)

* Make generator, coroutine and async gen structs all the same size.

* Store interpreter frame in generator (and coroutine). Reduces the number of allocations neeeded for a generator from two to one.
Include/cpython/genobject.h
Include/internal/pycore_ceval.h
Include/internal/pycore_frame.h
Lib/test/test_sys.py
Objects/genobject.c
Python/ceval.c
Python/frame.c