René's URL Explorer Experiment


Title: Use Argument Clinic Vectorcall for types where it provides substantial benefit · Issue #162350 · python/cpython · GitHub

Open Graph Title: Use Argument Clinic Vectorcall for types where it provides substantial benefit · Issue #162350 · python/cpython

X Title: Use Argument Clinic Vectorcall for types where it provides substantial benefit · Issue #162350 · python/cpython

Description: Feature or enhancement Argument Clinic can now generate vectorcall for class __init__ and __new__ (gh-87613). This is a meta tracking issue for moving objects to use Argument Clinic generated Vectorcall for these cases: Replacing a handw...

Open Graph Description: Feature or enhancement Argument Clinic can now generate vectorcall for class __init__ and __new__ (gh-87613). This is a meta tracking issue for moving objects to use Argument Clinic generated Vecto...

X Description: Feature or enhancement Argument Clinic can now generate vectorcall for class __init__ and __new__ (gh-87613). This is a meta tracking issue for moving objects to use Argument Clinic generated Vecto...

Opengraph URL: https://github.com/python/cpython/issues/162350

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Use Argument Clinic Vectorcall for types where it provides substantial benefit","articleBody":"### Feature or enhancement\n\nArgument Clinic can now generate vectorcall for class `__init__` and `__new__` (gh-87613). This is a meta tracking issue for moving objects to use Argument Clinic generated Vectorcall for these cases:\n\n1. Replacing a handwritten vectorcall with the same behavior and equal or better performance. \n   - Minor changes in exception text for bad arguments are okay\n2. Replacing `PyArg_Parse*` with Argument Clinic + Vectorcall\n   - At least a 10% performance boost in pyperf microbenchmark.\n   - Minor changes in exception text for bad arguments are okay\n3. Adding Vectorcall to objects which currently use Argument Clinic but do not support it\n   - For these one of the following should apply:\n       - The objects are common in performance critical code. This should generally be shown with an improvement on a `pyperformance` benchmark. If it's critical for a real application but there are no benchmarks, we should add them.\n       - Speedup is substantial: over 15% in microbenchmarks. If the operation is a small part of a larger common operation (ex. `json.Encoder` in `json.dumps`), that operation must improve by at least 5% on a typical input. This is because vectorcall adds significant code for the performance it enables.\n\nFor all the cases it's important to validate\n  - Behavior is the same across a wide range of inputs. Changes must be documented and noted. Substantial chagnes mean a different issue from this one is required.\n  - There are no regressions for specific argument patterns.\n  - `tp_call` keeps strong references in the argument tuple. In vectorcall the arguments are borrowed references. Make sure to hold a strong reference (`Py_INCREF`) before calling arbitrary Python code.\n\n\nIf new features are neededed those should be worked on in other issues. Ideally don't want to both convert a type _and_ change existing codegen in one PR. Issues with AC Vectorcall code generation should be reported in gh-87613.\n\n## Good Candidates\n\n- [ ] `itertools`\n- [ ] `operator`: `itemgetter`, `attrgetter`\n- [ ] `types`: `MethodType`, `CellType`, `FrameLocalsProxy`, `MappingProxyType`, `FunctionType`\n- [ ] `memoryview`\n- [ ] `property`\n- [ ] `complex`\n- [ ] `sentinel`\n- [ ] `string.templatelib`: `Template`, `Interpolation`\n- [ ] `typing`: `TypeAliasType`, `ParamSpecArgs`, `ParamSpecKwargs`\n- [ ] `pickle.PickleBuffer`\n- [ ] `contextvars.ContextVar`\n- [ ] `array.array`\n- [ ] `csv`\n- [ ] `datetime`: `timezone`, `timedelta`\n- [ ] `zoneinfo`\n- [ ] `queue.SimpleQueue`\n- [ ] `io.IncrementalNewlineDecoder`\n- [ ] `ctypes.CField`\n- [ ] `map`\n- [ ] `json` - GH-162376\n\n## Blocked: Require known feature work\n\n- [ ] gh-161597: Support `**kwargs` in AC vectorcall\n  - `collections.defaultdict`, `operator.methodcaller`, `functools.partial`, `object`\n  - `collections.OrderedDict` (also needs the self cast fix)\n  - Exception hierarchy\n  - `asyncio.Task`, `asyncio.Future`\n  - `xml.etree.ElementTree`\n- [ ] Other known improvements needed\n  - [ ] `set`, `frozenset`\n  - [ ] `super`\n  - [ ] `sqlite3.Cursor`, `sqlite3.Row`\n  - [ ] `datetime.date`, `datetime.time`, `datetime.datetime`\n\n\n### Has this already been discussed elsewhere?\n\nThis is a minor feature, which does not need previous discussion elsewhere\n\n### Links to previous discussion of this feature:\n\n_No response_\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-162376\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/cmaloney","@type":"Person","name":"cmaloney"},"datePublished":"2026-11-21T02:57:08Z","url":"https://github.com/python/cpython/issues/162350"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e345c60f-3cb7-d8a3-b535-c36d69bc5da4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA4C6:1087D4:2FB9CC4:3FC91B7:6B01E941
html-safe-noncedb3eb4639ffa3717306f6ee3f350d88b98a370cb461fc0b617911e53c4b7f342
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNEM2OjEwODdENDoyRkI5Q0M0OjNGQzkxQjc6NkIwMUU5NDEiLCJ2aXNpdG9yX2lkIjoiNjg3MzkzNzUxNjU2MzY1NDk3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6ff3726cc4e5e309d8d79ea2f5d81885fddc2bc4e1271df1a4b79b304b76c1f3
hovercard-subject-tagissue:6523657872
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/162350/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ff6a45c1f02d99a2fc9ad4a05b0bb83f8a7efb754540996890cdb8b9cfccce7d/python/cpython/issues/162350
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ff6a45c1f02d99a2fc9ad4a05b0bb83f8a7efb754540996890cdb8b9cfccce7d/python/cpython/issues/162350
og:image:altFeature or enhancement Argument Clinic can now generate vectorcall for class __init__ and __new__ (gh-87613). This is a meta tracking issue for moving objects to use Argument Clinic generated Vecto...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecmaloney
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/162350#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F162350
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F162350
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/162350
Reloadhttps://github.com/python/cpython/issues/162350
Reloadhttps://github.com/python/cpython/issues/162350
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/162350
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/162350
Use Argument Clinic Vectorcall for types where it provides substantial benefithttps://github.com/python/cpython/issues/162350#top
performancePerformance or resource usagehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22performance%22
topic-argument-clinichttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-argument-clinic%22
type-refactorCode refactoring (with no changes in behavior)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-refactor%22
https://github.com/cmaloney
cmaloneyhttps://github.com/cmaloney
on Nov 21, 2026https://github.com/python/cpython/issues/162350#issue-6523657872
gh-87613https://github.com/python/cpython/issues/87613
gh-87613https://github.com/python/cpython/issues/87613
gh-162350: Use AC vectorcall for _json.make_encoder to speed up json.dumps #162376https://github.com/python/cpython/pull/162376
gh-87613: Supprt **kwargs in AC VC and use for xml.etree.ElementTree.Element #161597https://github.com/python/cpython/pull/161597
gh-162350: Use AC vectorcall for _json.make_encoder to speed up json.dumps #162376https://github.com/python/cpython/pull/162376
cmaloneyhttps://github.com/cmaloney
performancePerformance or resource usagehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22performance%22
topic-argument-clinichttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-argument-clinic%22
type-refactorCode refactoring (with no changes in behavior)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-refactor%22
on Nov 21, 2026https://github.com/python/cpython/issues/162350#event-36833836564
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/162350
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/162350
performancePerformance or resource usagehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22performance%22
topic-argument-clinichttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-argument-clinic%22
type-refactorCode refactoring (with no changes in behavior)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-refactor%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.