FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-109369 Add vectorcall to `PyLong_Type` by markshannon · Pull Request #111642 · python/cpython · GitHub

Repository navigation

GH-109369 Add vectorcall to PyLong_Type - #111642

Merged
markshannon merged 2 commits into
python:mainfrom
faster-cpython:long-vectorcall
Nov 2, 2023
Merged

markshannon merged 2 commits into
python:mainfrom
faster-cpython:long-vectorcall

Conversation

markshannon commented Nov 2, 2023 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

Surprisingly, PyLong_Type doesn't implement vectorcall, so this PR adds it.
It should improve performance a bit and I need int(True) to stay on trace to test #109369

Comment thread Objects/longobject.c Outdated
return long_new_impl(_PyType_CAST(type), args[0], args[1]);
default:
return PyErr_Format(PyExc_TypeError,
"int expected at most 2 argument%s, got %zd", nargs);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Is the indentation right here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Probably not. I'll fix it

Comment thread Objects/longobject.c
markshannon merged commit 0887b9c into python:main Nov 2, 2023
FullteaR pushed a commit to FullteaR/cpython that referenced this pull request Nov 3, 2023
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
markshannon deleted the long-vectorcall branch August 6, 2024 10:17
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL