Skip to content

Change function calls to use vectorcall - #5948

Merged
b-pass merged 37 commits into
pybind:masterfrom
b-pass:vectorcall
Jan 6, 2026
Merged

Change function calls to use vectorcall#5948
b-pass merged 37 commits into
pybind:masterfrom
b-pass:vectorcall

Conversation

@b-pass

@b-pass b-pass commented Dec 26, 2025

Copy link
Copy Markdown
Collaborator

Description

Change both the Python->C++ and the C++->Python function calls to use the faster "vector call" calling protocol.

This makes function calls faster, at the minor expense of having to handle the arguments slightly differently.

Suggested changelog entry:

  • Improved performance of function calls between Python and C++ by switching to the "vectorcall" calling protocol.

Loading
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.

3 participants