-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
PyUnicode_Type
needs vectorcall.
#117709
Comments
Perhaps since all three parameters can be passed as both keyword and positional arguments. That's a lot of combinations to spell out. |
I made a PoC branch just for fun: https://github.com/erlend-aasland/cpython/pull/new/perf/unicode-vectorcall Added paths for the cases where all args are positional, in additional to two positional and one keyword arg, and one positional and |
This comment was marked as outdated.
This comment was marked as outdated.
…ments (#117746) Fall back to tp_call() for cases when arguments are passed by name. Co-authored-by: Donghee Na <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
Resolved with #117746 which speeds up |
We should consider "vectorcallising" |
…y arguments (python#117746) Fall back to tp_call() for cases when arguments are passed by name. Co-authored-by: Donghee Na <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
Calls to
str()
must use the oldtp_call
protocol instead oftp_vectorcall
, asPyUnicode_Type
does not implement vectorcall.All other common types, including
list
,dict
,tuple
implement vectorcall. For some reasonstr
got overlooked.Linked PRs
str()
#117725The text was updated successfully, but these errors were encountered: