-
-
Notifications
You must be signed in to change notification settings - Fork 3k
[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
base: master
Are you sure you want to change the base?
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
…mypy into star2arg-fastpath
for more information, see https://pre-commit.ci
r9 = PyObject_Call(r3, r7, r8) | ||
r10 = unbox(tuple[int, int, int], r9) | ||
return r10 | ||
r4 = box(tuple[int, int, int], r0) |
There was a problem hiding this comment.
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
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 |
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.