Skip to content

[mypyc] Keep all compiler spills on generator frames - #21958

Merged
JukkaL merged 2 commits into
masterfrom
mypyc-async-5c
Sep 8, 2026
Merged

[mypyc] Keep all compiler spills on generator frames#21958
JukkaL merged 2 commits into
masterfrom
mypyc-async-5c

Conversation

@JukkaL

@JukkaL JukkaL commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

They are internal to the generator, and by moving them to the generator from the environment they can be accessed using faster attribute ops on free-threaded builds.

This made a microbenchmark marginally faster on Python 3.14 (free-threaded).

I used coding agent assist.

@JukkaL
JukkaL merged commit 203d7a1 into master Sep 8, 2026
18 checks passed
@JukkaL
JukkaL deleted the mypyc-async-5c branch September 8, 2026 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants