-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[mypyc] Use faster METH_FASTCALL wrapper functions on Python 3.7+ #9894
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
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
ba2d8f0
Add vectorcall args parser
JukkaL 1e00440
[WIP] Hacky partial vectorcall support
JukkaL 9dc2dc1
Fix multiple modules
JukkaL de9e53f
Don't use verctorcall for __call__ for now
JukkaL aeb3ba8
Fix methods
JukkaL 31f8680
Support keyword-only arguments
JukkaL c85f752
Replace uses of _PyArg_Parser with CPyArg_Parser
JukkaL 9a70756
Optimize argument parsing a little
JukkaL 3298f12
Support *args and **kwargs in called function
JukkaL 3b00e8d
Update LICENSE to mention getargsfast
JukkaL 2fcb6c0
Add overview comment
JukkaL ac213ff
Fix __init__/__call__ checks
JukkaL fd3a9c5
Simplify code a bit
JukkaL e0cf0cf
Fix Python 3.6
JukkaL 4be74d1
Refactor
JukkaL a6a254a
More refactoring
JukkaL 1d90472
Add docstrings
JukkaL 4ba8deb
Minor refactoring
JukkaL 64714ac
Minor refactoring
JukkaL 4c6989e
Minor cleanup
JukkaL 8aec3dd
Fix typo
JukkaL 2f41763
Fix vectorcall header
JukkaL dd0513e
Share some code
JukkaL File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
These preparatory steps here are very similar to the legacy wrapper below. Would it make sense to factor them out in a helper?
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.
Refactored some of the shared code. I didn't share everything, since I'm planning further changes that may only be relevant for new-style wrapper functions.