René's URL Explorer Experiment


Title: gh-90370: Avoid temporary `varargs` tuple creation in argument passing by colorfulappl · Pull Request #30312 · python/cpython · GitHub

Open Graph Title: gh-90370: Avoid temporary `varargs` tuple creation in argument passing by colorfulappl · Pull Request #30312 · python/cpython

X Title: gh-90370: Avoid temporary `varargs` tuple creation in argument passing by colorfulappl · Pull Request #30312 · python/cpython

Description: When "Augument Clinic generated code" are parsing arguments, the args are packed to a tuple before passing to callee. This may be unnecessary. Pass a raw pointer which points to on-stack varargs, and a varargssize integer to indicate how many varargs are passed, can save the time of tuple creation/destruction and value copy. BPO-issue: bpo-46212 Issue: gh-90370

Open Graph Description: When "Augument Clinic generated code" are parsing arguments, the args are packed to a tuple before passing to callee. This may be unnecessary. Pass a raw pointer which points to on-stack ...

X Description: When "Augument Clinic generated code" are parsing arguments, the args are packed to a tuple before passing to callee. This may be unnecessary. Pass a raw pointer which points to o...

Opengraph URL: https://github.com/python/cpython/pull/30312

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:26044b1d-f2fb-d380-0df4-9e62968f3056
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD424:3372CB:1EDBA97:2A7200B:696AB5BE
html-safe-nonce2ba7c16964d55b02038c2bbd4d0b48593e0744d6af8b37fe35e21c9694226928
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDI0OjMzNzJDQjoxRURCQTk3OjJBNzIwMEI6Njk2QUI1QkUiLCJ2aXNpdG9yX2lkIjoiNjE0Mjk0MzQxNTcyMTcwMjg0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb4472262bb3c6426b30ed4e6d2977a346013242e296d1b71310006fb2d130cf7
hovercard-subject-tagpull_request:812317224
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/30312/files
twitter:imagehttps://avatars.githubusercontent.com/u/22052108?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/22052108?s=400&v=4
og:image:altWhen "Augument Clinic generated code" are parsing arguments, the args are packed to a tuple before passing to callee. This may be unnecessary. Pass a raw pointer which points to on-stack ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4fa1799b6a53c2d30c950d74230781bef9e7f61138c72c7727e4b83f0743752b
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release41f276818bd204c4a30a0281fb3c576298d9474c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/30312/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F30312%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F30312%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/30312/files
Reloadhttps://github.com/python/cpython/pull/30312/files
Reloadhttps://github.com/python/cpython/pull/30312/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/30312/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/30312/files
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
colorfulapplhttps://github.com/colorfulappl
python:mainhttps://github.com/python/cpython/tree/main
colorfulappl:opt_achttps://github.com/colorfulappl/cpython/tree/opt_ac
Conversation 30 https://github.com/python/cpython/pull/30312
Commits 27 https://github.com/python/cpython/pull/30312/commits
Checks 0 https://github.com/python/cpython/pull/30312/checks
Files changed https://github.com/python/cpython/pull/30312/files
Please reload this pagehttps://github.com/python/cpython/pull/30312/files
gh-90370: Avoid temporary varargs tuple creation in argument passing https://github.com/python/cpython/pull/30312/files#top
Show all changes 27 commits https://github.com/python/cpython/pull/30312/files
b68176d Avoid temporary `varargs` tuple creation in argument passing colorfulappl Dec 31, 2021 https://github.com/python/cpython/pull/30312/commits/b68176d081e19a3cedbaf2cdb31ecd7690421ec8
43b9410 Optimize argument passing of builtin print() with modified Argument C… colorfulappl Dec 31, 2021 https://github.com/python/cpython/pull/30312/commits/43b9410d33dfa9ad45a6ad156b649f7551ce5f7a
9b37a77 Revert modification of PyAPI_FUNC _PyArg_UnpackKeywordsWithVararg to … colorfulappl Jan 4, 2022 https://github.com/python/cpython/pull/30312/commits/9b37a772f3b265eb823e7f884c8f50d68f70941b
46e4472 📜🤖 Added by blurb_it. blurb-it[bot] Jan 4, 2022 https://github.com/python/cpython/pull/30312/commits/46e4472961f89def35e3726af4c9f58729f3dd23
e06f343 Revert _PyArg_UnpackKeywordsWithVararg and add _PyArg_UnpackKeywordsW… colorfulappl Jan 4, 2022 https://github.com/python/cpython/pull/30312/commits/e06f3434f6bdeb1ed8e1aef7f28b75a0b840bf21
d35410b Fix a bug which allows more than one varargs colorfulappl Feb 22, 2022 https://github.com/python/cpython/pull/30312/commits/d35410b15349ee55207642bd794988cd412fe6e8
0a9fe91 Do not copy posargs and vararg during argument parsing colorfulappl Mar 22, 2022 https://github.com/python/cpython/pull/30312/commits/0a9fe9189238128810936e47257560a96753de85
9188052 Rename _PyArg_UnpackKeywordsWithVarargFast, it returns kwargs only now colorfulappl Mar 23, 2022 https://github.com/python/cpython/pull/30312/commits/9188052d6ecce373dcf32d826db1a018517f9578
d245ec0 Check type of varargs when generating argument parser colorfulappl Mar 23, 2022 https://github.com/python/cpython/pull/30312/commits/d245ec01ebf13a2e36baa67f5401f6669f3a36b3
8d16685 Fix varargssize calculation in class init and add test cases colorfulappl Mar 23, 2022 https://github.com/python/cpython/pull/30312/commits/8d1668531857b1cb72829683b6c1e5819d1e2aa6
f4213ea Merge branch 'main' into opt_ac colorfulappl Mar 23, 2022 https://github.com/python/cpython/pull/30312/commits/f4213ea7972daba9622dd06c1211cf0ade19644d
156f8d6 Rerun make clinic colorfulappl Mar 23, 2022 https://github.com/python/cpython/pull/30312/commits/156f8d69e51838ce3e4034570277d5cc994c78a9
c32aed4 Edit documentation colorfulappl Mar 23, 2022 https://github.com/python/cpython/pull/30312/commits/c32aed4b4922ada073f258e8f0d8c7b3f42ba9ad
7ef5623 Merge branch 'main' into opt_ac colorfulappl Feb 3, 2023 https://github.com/python/cpython/pull/30312/commits/7ef562351a1e7485de86c277c396a22e7d03a440
3ac2821 Fix errors introduced by merging and rerun make clinic colorfulappl Feb 3, 2023 https://github.com/python/cpython/pull/30312/commits/3ac2821b0d4923af3f3cb20d5eb2780841dc2f97
f63a704 Update news colorfulappl Feb 3, 2023 https://github.com/python/cpython/pull/30312/commits/f63a70452f66e77e161308b7e6f57150b2393ec9
8f61f5e Fix varargssize in new_or_init colorfulappl Feb 6, 2023 https://github.com/python/cpython/pull/30312/commits/8f61f5e4a5421f8efc8830589cede4a9b72f7b48
1eff215 Simplify the code a bit colorfulappl Feb 6, 2023 https://github.com/python/cpython/pull/30312/commits/1eff215c27941fab3cc7dfb54b57cb6ee41e15da
5baf0f5 Optimize generated varargssize assignment colorfulappl Feb 6, 2023 https://github.com/python/cpython/pull/30312/commits/5baf0f5bc34f748dc5d5090e906e62b2620d25f8
30c0606 Fix argument passing in new_or_init colorfulappl Feb 7, 2023 https://github.com/python/cpython/pull/30312/commits/30c06066a1ccef3101c4a12b088572e7e8778f4e
d9e7408 Add tests for class method `__new__` colorfulappl Feb 7, 2023 https://github.com/python/cpython/pull/30312/commits/d9e7408260891e3d69e0803acca8b3c33b077591
0f04a95 Merge branch 'main' into opt_ac colorfulappl Feb 7, 2023 https://github.com/python/cpython/pull/30312/commits/0f04a95acc34762a4f128733b4d2810aa835e39d
85a8ac5 Correct test function name colorfulappl Feb 8, 2023 https://github.com/python/cpython/pull/30312/commits/85a8ac5a7c8f2120ea01d0040726867052a6e6b0
a9d1424 Fix vararg parsing when its name is not `args` colorfulappl Feb 8, 2023 https://github.com/python/cpython/pull/30312/commits/a9d1424fb9ca4f304748a8635693ff97c1608e3f
d6ff01a Merge branch 'main' into opt_ac colorfulappl Feb 8, 2023 https://github.com/python/cpython/pull/30312/commits/d6ff01a731fe03d527acdbe2910c0d85113a7568
597152e Add testcases for undeclared keyword arguments colorfulappl Feb 8, 2023 https://github.com/python/cpython/pull/30312/commits/597152e2b3e5ae941dbd2d7a0d4e7ef5995308ad
3119fa6 Merge branch 'main' into opt_ac erlend-aasland Apr 29, 2023 https://github.com/python/cpython/pull/30312/commits/3119fa6279fa36ce9120a22399e0af12145fd2b2
Clear filters https://github.com/python/cpython/pull/30312/files
Please reload this pagehttps://github.com/python/cpython/pull/30312/files
Please reload this pagehttps://github.com/python/cpython/pull/30312/files
modsupport.h https://github.com/python/cpython/pull/30312/files#diff-7c4b3205ec705047cf3a2ed67211568fe5be62c5b1f1d6795374491dd56be2ae
clinic.test https://github.com/python/cpython/pull/30312/files#diff-0254b4c0681c8182a96fab40ba05124f65be91bc1cd0350c9d1e69326bb05515
test_clinic.py https://github.com/python/cpython/pull/30312/files#diff-0267fab8cf520e17e208f9f0d8fb6fbd2ec5fb6eb5c7dbab5bc08a01239938bf
2022-01-04-08-09-32.bpo-46212._Fvxj6.rst https://github.com/python/cpython/pull/30312/files#diff-9d1fae7b94dc42939167baa89980b298bbec3e3a3058cdb148e68dff049381ae
_testclinic.c https://github.com/python/cpython/pull/30312/files#diff-b0fa0e79fca88f55305bd9931e4a149957d282c96447d0df0adf9c132bd04aa1
_testclinic.c.h https://github.com/python/cpython/pull/30312/files#diff-a711b68a5645f52be0139e746f561116fb45db076883baf1d389d27cebfaad55
bltinmodule.c https://github.com/python/cpython/pull/30312/files#diff-e4fd8b8ee6a147f86c0719ff122aca6dfca36edbd4812c87892698b3b72e40a1
bltinmodule.c.h https://github.com/python/cpython/pull/30312/files#diff-a4b4bbe4bcd5f70f9cbf9fb324779deb3c774ab38683ebc3cad83f03920070c5
getargs.c https://github.com/python/cpython/pull/30312/files#diff-3a8078954be00d3c876e02dd0e5057aad07f2c5f82f6c3c76154dcf2866929cf
clinic.py https://github.com/python/cpython/pull/30312/files#diff-4c6b55ec7d80a3d60f100ce230eb879d9acbe2e558e01d318960e6197d7c47b3
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L264
Include/cpython/modsupport.hhttps://github.com/python/cpython/pull/30312/files#diff-7c4b3205ec705047cf3a2ed67211568fe5be62c5b1f1d6795374491dd56be2ae
View file https://github.com/colorfulappl/cpython/blob/3119fa6279fa36ce9120a22399e0af12145fd2b2/Include/cpython/modsupport.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/30312/{{ revealButtonHref }}
https://github.com/python/cpython/pull/30312/files#diff-7c4b3205ec705047cf3a2ed67211568fe5be62c5b1f1d6795374491dd56be2ae
https://github.com/python/cpython/pull/30312/files#diff-7c4b3205ec705047cf3a2ed67211568fe5be62c5b1f1d6795374491dd56be2ae
Please reload this pagehttps://github.com/python/cpython/pull/30312/files
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.