Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

BobTheBuidler
Copy link
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.

r9 = PyObject_Call(r3, r7, r8)
r10 = unbox(tuple[int, int, int], r9)
return r10
r4 = box(tuple[int, int, int], r0)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should I also add handling for RTuple types? I don't see any reason to box this value into a python tuple only to then call PySequence_Tuple

@BobTheBuidler
Copy link
Contributor Author

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

Or we can use CPyDict_Copy here so we can merge it now and replace it with the fast path with 1956

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.

1 participant