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

gh-139103: Use METH_FASTCALL for tp_new_wrapper by colesbury · Pull Request #144406 · python/cpython · GitHub

/ cpython Public

gh-139103: Use METH_FASTCALL for tp_new_wrapper - #144406

Merged
kumaraditya303 merged 1 commit into
python:mainfrom
colesbury:gh-139103-tp-new-wrapper-fastcall
Feb 3, 2026
Merged

gh-139103: Use METH_FASTCALL for tp_new_wrapper#144406
kumaraditya303 merged 1 commit into
python:mainfrom
colesbury:gh-139103-tp-new-wrapper-fastcall

Conversation

colesbury commented Feb 2, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

This addresses one of the bottlenecks when constructing namedtuple instances. With the previous METH_VARARGS, the type argument to __new__ would be included in the arguments tuple, leading to reference count contention.

This addresses one of the bottlenecks when constructing namedtuple
instances. With the previous METH_VARARGS, the type argument to
__new__ would be included in the arguments tuple, leading to
reference count contention.

Copy link
Copy Markdown
Contributor Author

A few comments:

vstinner left a comment

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

LGTM.

I'm not sure what's wrong with the CI.

Copy link
Copy Markdown
Contributor Author

I think there are site-wide failures with GitHub Actions hosted-runners: https://www.githubstatus.com/

colesbury marked this pull request as ready for review February 2, 2026 21:26
kumaraditya303 merged commit 93b27e7 into python:main Feb 3, 2026
122 of 143 checks passed
Aniketsy pushed a commit to Aniketsy/cpython that referenced this pull request Feb 3, 2026
colesbury deleted the gh-139103-tp-new-wrapper-fastcall branch February 5, 2026 16:59
thunder-coding pushed a commit to thunder-coding/cpython that referenced this pull request Feb 15, 2026
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