René's URL Explorer Experiment


Title: gh-127295: ctypes: Switch field accessors to fixed-width integers by encukou · Pull Request #127297 · python/cpython · GitHub

Open Graph Title: gh-127295: ctypes: Switch field accessors to fixed-width integers by encukou · Pull Request #127297 · python/cpython

X Title: gh-127295: ctypes: Switch field accessors to fixed-width integers by encukou · Pull Request #127297 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: See the issue. This refactoring has a miniscule but consistent performance benefit (1.01x geometric mean; edit: 46 cases slower & 415 faster). See my bench script & results. Thanks @vstinne...

X Description: See the issue. This refactoring has a miniscule but consistent performance benefit (1.01x geometric mean; edit: 46 cases slower & 415 faster). See my bench script & results. Thanks ...

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

X: @github

direct link

Domain: github.com

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/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:fbf06527-3f31-a06f-1a6a-3760c7911fde
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB7E8:2E124E:3E130D7:4F3BBC1:6B022081
html-safe-nonce3a40a7174ce2d4709c439a000a2343d845d9c95d0cd7f278f7e0b257ba1e9fe5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0U4OjJFMTI0RTozRTEzMEQ3OjRGM0JCQzE6NkIwMjIwODEiLCJ2aXNpdG9yX2lkIjoiNTYxNzk4MDQ2ODA4MDI4Nzg3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7ee1980c303ebe86074cbdacf9a2fda9be7ce3e9022e8ed981190d50489ce140
hovercard-subject-tagpull_request:2201219599
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/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/127297/commits
twitter:imagehttps://opengraph.githubassets.com/6a31d1f234059f3e8e7be0c0b8ad15d6fce7a12a72cbf59f7f96b693a58fafd9/python/cpython/pull/127297
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6a31d1f234059f3e8e7be0c0b8ad15d6fce7a12a72cbf59f7f96b693a58fafd9/python/cpython/pull/127297
og:image:altSee the issue. This refactoring has a miniscule but consistent performance benefit (1.01x geometric mean; edit: 46 cases slower & 415 faster). See my bench script & results. Thanks @vstinne...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameencukou
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-cache
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-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/127297/commits#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F127297%2Fcommits
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%2Fpull%2F127297%2Fcommits
Sign uphttps://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%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/127297/commits
Reloadhttps://github.com/python/cpython/pull/127297/commits
Reloadhttps://github.com/python/cpython/pull/127297/commits
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
encukouhttps://github.com/encukou
python:mainhttps://github.com/python/cpython/tree/main
encukou:ctypes-fixinthttps://github.com/encukou/cpython/tree/ctypes-fixint
Conversationhttps://github.com/python/cpython/pull/127297
Commits20 (20)https://github.com/python/cpython/pull/127297/commits
Checkshttps://github.com/python/cpython/pull/127297/checks
Files changedhttps://github.com/python/cpython/pull/127297/files
gh-127295: ctypes: Switch field accessors to fixed-width integershttps://github.com/python/cpython/pull/127297/commits#top
encukouhttps://github.com/encukou
python:mainhttps://github.com/python/cpython/tree/main
encukou:ctypes-fixinthttps://github.com/encukou/cpython/tree/ctypes-fixint
Consistently pass the size to getfunc/setfunchttps://github.com/python/cpython/pull/127297/commits/eeb0d4e1fd96c58a1de76c1d974684c1e5e91f10
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
eeb0d4ehttps://github.com/python/cpython/pull/127297/commits/eeb0d4e1fd96c58a1de76c1d974684c1e5e91f10
https://github.com/python/cpython/tree/eeb0d4e1fd96c58a1de76c1d974684c1e5e91f10
Switch to fixed-width integershttps://github.com/python/cpython/pull/127297/commits/e33c92953b363454351b4073424e813e17b7415d
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
e33c929https://github.com/python/cpython/pull/127297/commits/e33c92953b363454351b4073424e813e17b7415d
https://github.com/python/cpython/tree/e33c92953b363454351b4073424e813e17b7415d
Remove comment for obsolete ideahttps://github.com/python/cpython/pull/127297/commits/a11c0d9b596b5c9e292b6420b455ffde13f22b51
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
a11c0d9https://github.com/python/cpython/pull/127297/commits/a11c0d9b596b5c9e292b6420b455ffde13f22b51
https://github.com/python/cpython/tree/a11c0d9b596b5c9e292b6420b455ffde13f22b51
Fix the size argumenthttps://github.com/python/cpython/pull/127297/commits/c69b65fe72f02a17d4e5ededa589f3bbe6c9d55a
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
c69b65fhttps://github.com/python/cpython/pull/127297/commits/c69b65fe72f02a17d4e5ededa589f3bbe6c9d55a
https://github.com/python/cpython/tree/c69b65fe72f02a17d4e5ededa589f3bbe6c9d55a
Re-run Clinichttps://github.com/python/cpython/pull/127297/commits/eb8cf98e1e9646c8c71d80d650acc364b3621fcb
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
eb8cf98https://github.com/python/cpython/pull/127297/commits/eb8cf98e1e9646c8c71d80d650acc364b3621fcb
https://github.com/python/cpython/tree/eb8cf98e1e9646c8c71d80d650acc364b3621fcb
Regen Clinichttps://github.com/python/cpython/pull/127297/commits/b9ed7278328b6bf75d82408048fa2e4049e5649e
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
b9ed727https://github.com/python/cpython/pull/127297/commits/b9ed7278328b6bf75d82408048fa2e4049e5649e
https://github.com/python/cpython/tree/b9ed7278328b6bf75d82408048fa2e4049e5649e
Specify signedness of the FFI types, don't match the C typeshttps://github.com/python/cpython/pull/127297/commits/7cbe57ceca172ca729ebdc97facdb25459ea8472
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
7cbe57chttps://github.com/python/cpython/pull/127297/commits/7cbe57ceca172ca729ebdc97facdb25459ea8472
https://github.com/python/cpython/tree/7cbe57ceca172ca729ebdc97facdb25459ea8472
Avoid compiler warningshttps://github.com/python/cpython/pull/127297/commits/144a3b0544d04bf5290e7b546e59876334d4982a
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
144a3b0https://github.com/python/cpython/pull/127297/commits/144a3b0544d04bf5290e7b546e59876334d4982a
https://github.com/python/cpython/tree/144a3b0544d04bf5290e7b546e59876334d4982a
Silence the GCC warning in a more local way. It's a GCC bug.https://github.com/python/cpython/pull/127297/commits/fcae66bf1f432d7ba8fa85f60e018986bc8ec461
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
fcae66bhttps://github.com/python/cpython/pull/127297/commits/fcae66bf1f432d7ba8fa85f60e018986bc8ec461
https://github.com/python/cpython/tree/fcae66bf1f432d7ba8fa85f60e018986bc8ec461
Apply suggestions from code reviewhttps://github.com/python/cpython/pull/127297/commits/05ba9899bcd62b991d51bc3ffad385dd1d79915b
encukouhttps://github.com/python/cpython/commits?author=encukou
picnixzhttps://github.com/python/cpython/commits?author=picnixz
05ba989https://github.com/python/cpython/pull/127297/commits/05ba9899bcd62b991d51bc3ffad385dd1d79915b
https://github.com/python/cpython/tree/05ba9899bcd62b991d51bc3ffad385dd1d79915b
Add parens around macro argumenthttps://github.com/python/cpython/pull/127297/commits/7c08d60da964ae868549eed0296182a2816a0b17
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
7c08d60https://github.com/python/cpython/pull/127297/commits/7c08d60da964ae868549eed0296182a2816a0b17
https://github.com/python/cpython/tree/7c08d60da964ae868549eed0296182a2816a0b17
Fix refcounting for _CTYPES_DEBUG_KEEP buildshttps://github.com/python/cpython/pull/127297/commits/50c82bed90acfb44043338a567eda51b47cec65f
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
50c82behttps://github.com/python/cpython/pull/127297/commits/50c82bed90acfb44043338a567eda51b47cec65f
https://github.com/python/cpython/tree/50c82bed90acfb44043338a567eda51b47cec65f
Consistency in comments. Why not.https://github.com/python/cpython/pull/127297/commits/7375c09dc4810daa3e5ad1957ea2f985e890b3b0
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
7375c09https://github.com/python/cpython/pull/127297/commits/7375c09dc4810daa3e5ad1957ea2f985e890b3b0
https://github.com/python/cpython/tree/7375c09dc4810daa3e5ad1957ea2f985e890b3b0
Merge in the main branchhttps://github.com/python/cpython/pull/127297/commits/6e8a4de0f8b3dd41290178b6446fe8aabed41715
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
6e8a4dehttps://github.com/python/cpython/pull/127297/commits/6e8a4de0f8b3dd41290178b6446fe8aabed41715
https://github.com/python/cpython/tree/6e8a4de0f8b3dd41290178b6446fe8aabed41715
Include & use `bool` rather than `_Bool`https://github.com/python/cpython/pull/127297/commits/870a03849990e1cc45c7a6fe9c2bc654d7cc7258
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
870a038https://github.com/python/cpython/pull/127297/commits/870a03849990e1cc45c7a6fe9c2bc654d7cc7258
https://github.com/python/cpython/tree/870a03849990e1cc45c7a6fe9c2bc654d7cc7258
Use a mutex around _ctypes_init_fielddeschttps://github.com/python/cpython/pull/127297/commits/1b41ace5734297732c89cc53d222fea718ce9533
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
1b41acehttps://github.com/python/cpython/pull/127297/commits/1b41ace5734297732c89cc53d222fea718ce9533
https://github.com/python/cpython/tree/1b41ace5734297732c89cc53d222fea718ce9533
Merge in the main branchhttps://github.com/python/cpython/pull/127297/commits/07d7ded17616cd9c4363b5fcbce8f0e6f4e47a58
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
07d7dedhttps://github.com/python/cpython/pull/127297/commits/07d7ded17616cd9c4363b5fcbce8f0e6f4e47a58
https://github.com/python/cpython/tree/07d7ded17616cd9c4363b5fcbce8f0e6f4e47a58
Nitpick: Use true/false for boolhttps://github.com/python/cpython/pull/127297/commits/34098c351dd1ec217ce7360e5d3cf9ea4c3711a1
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
34098c3https://github.com/python/cpython/pull/127297/commits/34098c351dd1ec217ce7360e5d3cf9ea4c3711a1
https://github.com/python/cpython/tree/34098c351dd1ec217ce7360e5d3cf9ea4c3711a1
Avoid unaligned loadhttps://github.com/python/cpython/pull/127297/commits/5155293361de5db6abe76b50a6510452441e4fb7
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
5155293https://github.com/python/cpython/pull/127297/commits/5155293361de5db6abe76b50a6510452441e4fb7
https://github.com/python/cpython/tree/5155293361de5db6abe76b50a6510452441e4fb7
Merge branch 'main' into ctypes-fixinthttps://github.com/python/cpython/pull/127297/commits/821a7b82e6e750f9fcb054d2bed5eed3f332e020
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
821a7b8https://github.com/python/cpython/pull/127297/commits/821a7b82e6e750f9fcb054d2bed5eed3f332e020
https://github.com/python/cpython/tree/821a7b82e6e750f9fcb054d2bed5eed3f332e020
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.