Skip to content

[mypyc] feat: extend stararg fastpath from #19629 with star2 fastpath#19630

Merged
JukkaL merged 34 commits into
python:masterfrom
BobTheBuidler:star2arg-fastpath
Aug 21, 2025
Merged

[mypyc] feat: extend stararg fastpath from #19629 with star2 fastpath#19630
JukkaL merged 34 commits into
python:masterfrom
BobTheBuidler:star2arg-fastpath

Conversation

@BobTheBuidler

Copy link
Copy Markdown
Contributor

This PR further extends the stararg fastpath PRs (#19623 , #19629) with fastpath logic for star2

All 3 PRs were kept separate in order to make them easier to review and to make the changes in the IR more obvious in a diff. I will rebase this PR once #19623 and #19629 are merged.

This full series of PRs is ready for review.

BobTheBuidler and others added 20 commits August 9, 2025 04:01
Comment thread mypyc/test-data/irbuild-basic.test Outdated
@BobTheBuidler

This comment was marked as resolved.

@JukkaL

JukkaL commented Aug 19, 2025

Copy link
Copy Markdown
Collaborator

Might be best to hold off on this one until #1956 is merged and we can ensure PyDict_Copy is safe

#1956 was fixed in 2016 -- do you mean some other issue?

@BobTheBuidler

BobTheBuidler commented Aug 19, 2025

Copy link
Copy Markdown
Contributor Author

You can disregard that comment. I was confused at the time but already addressed my own concern.

@JukkaL JukkaL left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks good. Left a few comments about tests, and also can you check that there are run tests that cover this functionality (there may be pre-existing tests but I'm not sure)?

Comment thread mypyc/irbuild/ll_builder.py
Comment thread mypyc/irbuild/ll_builder.py
@BobTheBuidler

Copy link
Copy Markdown
Contributor Author

I added the same new test cases on both this PR and on #19631

@JukkaL JukkaL left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates!

@JukkaL
JukkaL merged commit 8da097d into python:master Aug 21, 2025
13 checks passed
@BobTheBuidler
BobTheBuidler deleted the star2arg-fastpath branch August 23, 2025 13:35
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