René's URL Explorer Experiment


Title: gh-122901: Speed up `str` creation from non-ASCII data with a branch-free `find_max_char()` by ruema · Pull Request #122902 · python/cpython · GitHub

Open Graph Title: gh-122901: Speed up `str` creation from non-ASCII data with a branch-free `find_max_char()` by ruema · Pull Request #122902 · python/cpython

X Title: gh-122901: Speed up `str` creation from non-ASCII data with a branch-free `find_max_char()` by ruema · Pull Request #122902 · python/cpython

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

Open Graph Description: Change to find_max_char to speedup string creation. See issue #122901. Issue: Improve performance of find_max_char #122901

X Description: Change to find_max_char to speedup string creation. See issue #122901. Issue: Improve performance of find_max_char #122901

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

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/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:35417c01-fc3f-5c83-8604-5e2aac72d4e3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE7D4:2D40DE:3226D97:3FD6709:6B02103C
html-safe-nonce4eb6f69d1a2a0b47687ceb9ccb2cd373cc18abed18072bd59db654e8c2f02420
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0Q0OjJENDBERTozMjI2RDk3OjNGRDY3MDk6NkIwMjEwM0MiLCJ2aXNpdG9yX2lkIjoiNjU1ODIwNTg3MTA4Nzk4NTI0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac0d0a874aa3f992728700e562f3786ff9c0fdfeaeaa90e429efa0c7b9a060c31d
hovercard-subject-tagpull_request:2013800993
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/122902/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/d001a3b0efc00054f19cabad54ca0d498cb2e5d543a408caafea5e483e52e32a/python/cpython/pull/122902
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d001a3b0efc00054f19cabad54ca0d498cb2e5d543a408caafea5e483e52e32a/python/cpython/pull/122902
og:image:altChange to find_max_char to speedup string creation. See issue #122901. Issue: Improve performance of find_max_char #122901
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameruema
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/122902#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F122902
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%2F122902
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/122902
Reloadhttps://github.com/python/cpython/pull/122902
Reloadhttps://github.com/python/cpython/pull/122902
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
StanFromIrelandhttps://github.com/StanFromIreland
python:mainhttps://github.com/python/cpython/tree/main
ruema:feature/speedup_find_max_charhttps://github.com/ruema/cpython/tree/feature/speedup_find_max_char
Conversationhttps://github.com/python/cpython/pull/122902
Commits16 (16)https://github.com/python/cpython/pull/122902/commits
Checkshttps://github.com/python/cpython/pull/122902/checks
Files changedhttps://github.com/python/cpython/pull/122902/files
gh-122901: Speed up str creation from non-ASCII data with a branch-free find_max_char()https://github.com/python/cpython/pull/122902#top
StanFromIrelandhttps://github.com/StanFromIreland
python:mainhttps://github.com/python/cpython/tree/main
ruema:feature/speedup_find_max_charhttps://github.com/ruema/cpython/tree/feature/speedup_find_max_char
https://github.com/ruema
ruemahttps://github.com/ruema
Aug 11, 2024https://github.com/python/cpython/pull/122902#issue-2459571146
Please reload this pagehttps://github.com/python/cpython/pull/122902
#122901https://github.com/python/cpython/issues/122901
Improve performance of find_max_char #122901https://github.com/python/cpython/issues/122901
Please reload this pagehttps://github.com/python/cpython/pull/122902
https://github.com/ruema
Improve performance of find_max_charhttps://github.com/python/cpython/pull/122902/commits/b0f832188ddd578ed7f492bd72c1f19903cbfc55
b0f8321https://github.com/python/cpython/pull/122902/commits/b0f832188ddd578ed7f492bd72c1f19903cbfc55
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Aug 11, 2024 https://github.com/python/cpython/pull/122902#ref-issue-2459567528
Improve performance of find_max_char #122901 https://github.com/python/cpython/issues/122901
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Aug 11, 2024https://github.com/python/cpython/pull/122902#event-13834673365
ruemahttps://github.com/ruema
August 11, 2024 13:17https://github.com/python/cpython/pull/122902#commits-pushed-a43c1fc
https://github.com/ruema
missing ) addedhttps://github.com/python/cpython/pull/122902/commits/a43c1fc69953e2606b9e6aeb2b289a32dd282630
a43c1fchttps://github.com/python/cpython/pull/122902/commits/a43c1fc69953e2606b9e6aeb2b289a32dd282630
https://github.com/ruema
bugfix for unaligned short strings.https://github.com/python/cpython/pull/122902/commits/d597175261366d38546cc8010fd76f3f2a74d32b
d597175https://github.com/python/cpython/pull/122902/commits/d597175261366d38546cc8010fd76f3f2a74d32b
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F122902
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
stale https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Astale
Apr 18, 2026https://github.com/python/cpython/pull/122902#event-24627800630
https://github.com/StanFromIreland
Merge branch 'main' into feature/speedup_find_max_charhttps://github.com/python/cpython/pull/122902/commits/4a8b4d1bcf45545d67e6deb33435c407129cbaa5
4a8b4d1https://github.com/python/cpython/pull/122902/commits/4a8b4d1bcf45545d67e6deb33435c407129cbaa5
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
type-feature https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-feature
Oct 30, 2026https://github.com/python/cpython/pull/122902#event-34699097332
https://github.com/StanFromIreland
Re-write and move the news entryhttps://github.com/python/cpython/pull/122902/commits/fe362fe54236e3e0696ca4ef327be787d0424bbb
fe362fehttps://github.com/python/cpython/pull/122902/commits/fe362fe54236e3e0696ca4ef327be787d0424bbb
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Oct 30, 2026https://github.com/python/cpython/pull/122902#event-34699903253
https://github.com/StanFromIreland
Fix alignment prologue to actually align the pointer (+ some PEP 7 nits)https://github.com/python/cpython/pull/122902/commits/1650b4b2914b2b805e07d55576f830592f8f3f6a
1650b4bhttps://github.com/python/cpython/pull/122902/commits/1650b4b2914b2b805e07d55576f830592f8f3f6a
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Oct 30, 2026https://github.com/python/cpython/pull/122902#event-34700514935
https://github.com/StanFromIreland
Little nitshttps://github.com/python/cpython/pull/122902/commits/f524f84c4650094dc34b217bbaaabf00bb0171ec
f524f84https://github.com/python/cpython/pull/122902/commits/f524f84c4650094dc34b217bbaaabf00bb0171ec
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Oct 30, 2026https://github.com/python/cpython/pull/122902#event-34701060007
https://github.com/bedevere-bot
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F122902
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Oct 30, 2026https://github.com/python/cpython/pull/122902#event-34701066153
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Oct 30, 2026https://github.com/python/cpython/pull/122902#issuecomment-6529336888
Please reload this pagehttps://github.com/python/cpython/pull/122902
https://github.com/StanFromIreland
Use four accumulators and a 16-word block so the loop is fast when no…https://github.com/python/cpython/pull/122902/commits/1daa7ee9cd0c46f37a82997ff367c1f6389badf6
1daa7eehttps://github.com/python/cpython/pull/122902/commits/1daa7ee9cd0c46f37a82997ff367c1f6389badf6
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Oct 30, 2026https://github.com/python/cpython/pull/122902#issuecomment-6531662040
Please reload this pagehttps://github.com/python/cpython/pull/122902
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
eendebakpthttps://github.com/eendebakpt
October 30, 2026 19:24https://github.com/python/cpython/pull/122902#event-34725401762
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Oct 30, 2026https://github.com/python/cpython/pull/122902#event-34725548729
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Oct 30, 2026https://github.com/python/cpython/pull/122902#issuecomment-6531706617
@StanFromIrelandhttps://github.com/StanFromIreland
1daa7eehttps://github.com/python/cpython/commit/1daa7ee9cd0c46f37a82997ff367c1f6389badf6
https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F122902%2Fmergehttps://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F122902%2Fmerge
Please reload this pagehttps://github.com/python/cpython/pull/122902
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Oct 30, 2026https://github.com/python/cpython/pull/122902#event-34725554098
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Oct 30, 2026https://github.com/python/cpython/pull/122902#issuecomment-6531718540
@vstinnerhttps://github.com/vstinner
@eendebakpthttps://github.com/eendebakpt
@picnixzhttps://github.com/picnixz
Please reload this pagehttps://github.com/python/cpython/pull/122902
https://github.com/eendebakpt
eendebakpthttps://github.com/eendebakpt
Oct 30, 2026https://github.com/python/cpython/pull/122902#issuecomment-6533593045
Please reload this pagehttps://github.com/python/cpython/pull/122902
pr122902..find-max-char-reducehttps://github.com/eendebakpt/cpython/compare/pr122902..find-max-char-reduce?diff=split
Please reload this pagehttps://github.com/python/cpython/pull/122902
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Oct 30, 2026https://github.com/python/cpython/pull/122902#issuecomment-6533724670
Please reload this pagehttps://github.com/python/cpython/pull/122902
Please reload this pagehttps://github.com/python/cpython/pull/122902
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Oct 30, 2026https://github.com/python/cpython/pull/122902#issuecomment-6534156719
Please reload this pagehttps://github.com/python/cpython/pull/122902
your branchhttps://github.com/eendebakpt/cpython/compare/pr122902..find-max-char-reduce?diff=split
@eendebakpthttps://github.com/eendebakpt
Please reload this pagehttps://github.com/python/cpython/pull/122902
https://github.com/eendebakpt
eendebakpthttps://github.com/eendebakpt
Oct 30, 2026https://github.com/python/cpython/pull/122902#issuecomment-6535397411
Please reload this pagehttps://github.com/python/cpython/pull/122902
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Oct 30, 2026https://github.com/python/cpython/pull/122902#issuecomment-6535521845
Please reload this pagehttps://github.com/python/cpython/pull/122902
https://github.com/eendebakpt
eendebakpthttps://github.com/eendebakpt
Oct 31, 2026 https://github.com/python/cpython/pull/122902#pullrequestreview-5724801992
View reviewed changes https://github.com/python/cpython/pull/122902/files/c14a157ded1c70a5fb327932d2399a16a1e112c7
Objects/stringlib/find_max_char.hhttps://github.com/python/cpython/pull/122902/files/c14a157ded1c70a5fb327932d2399a16a1e112c7#diff-8956a8f467b218ff8cccf2c348fd30f9225a7bb47cd1df7e469e047f8233f930
Please reload this pagehttps://github.com/python/cpython/pull/122902
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
stale https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Astale
Nov 3, 2026https://github.com/python/cpython/pull/122902#event-34968628719
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Nov 3, 2026https://github.com/python/cpython/pull/122902#issuecomment-6615149811
Please reload this pagehttps://github.com/python/cpython/pull/122902
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 5, 2026https://github.com/python/cpython/pull/122902#issuecomment-6656264403
Please reload this pagehttps://github.com/python/cpython/pull/122902
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Nov 6, 2026https://github.com/python/cpython/pull/122902#issuecomment-6684807024
Please reload this pagehttps://github.com/python/cpython/pull/122902
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
vstinnerhttps://github.com/vstinner
November 6, 2026 15:56https://github.com/python/cpython/pull/122902#event-35364839144
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 6, 2026 https://github.com/python/cpython/pull/122902#pullrequestreview-5805617004
View reviewed changes https://github.com/python/cpython/pull/122902/files/c14a157ded1c70a5fb327932d2399a16a1e112c7
vstinnerhttps://github.com/vstinner
https://github.com/python/cpython/pull/122902#pullrequestreview-5805617004
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/122902
Objects/stringlib/find_max_char.hhttps://github.com/python/cpython/pull/122902/files/c14a157ded1c70a5fb327932d2399a16a1e112c7#diff-8956a8f467b218ff8cccf2c348fd30f9225a7bb47cd1df7e469e047f8233f930
Please reload this pagehttps://github.com/python/cpython/pull/122902
Objects/stringlib/find_max_char.hhttps://github.com/python/cpython/pull/122902/files/c14a157ded1c70a5fb327932d2399a16a1e112c7#diff-8956a8f467b218ff8cccf2c348fd30f9225a7bb47cd1df7e469e047f8233f930
Please reload this pagehttps://github.com/python/cpython/pull/122902
Objects/stringlib/find_max_char.hhttps://github.com/python/cpython/pull/122902/files/c14a157ded1c70a5fb327932d2399a16a1e112c7#diff-8956a8f467b218ff8cccf2c348fd30f9225a7bb47cd1df7e469e047f8233f930
Please reload this pagehttps://github.com/python/cpython/pull/122902
https://github.com/StanFromIreland
https://github.com/vstinner
Style nit.https://github.com/python/cpython/pull/122902/commits/0d6bed1aef449be68933da38ab7d615f26913681
0d6bed1https://github.com/python/cpython/pull/122902/commits/0d6bed1aef449be68933da38ab7d615f26913681
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
vstinnerhttps://github.com/vstinner
November 6, 2026 20:23https://github.com/python/cpython/pull/122902#event-35387092437
https://github.com/StanFromIreland
Align the pointer first and use plain word loads in the loopshttps://github.com/python/cpython/pull/122902/commits/03dd976dfffcf75962eac9ab4eb504ad9852866e
03dd976https://github.com/python/cpython/pull/122902/commits/03dd976dfffcf75962eac9ab4eb504ad9852866e
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Nov 6, 2026https://github.com/python/cpython/pull/122902#issuecomment-6695135926
true for x86-64https://godbolt.org/#g:!((g:!((g:!((g:!((h:codeEditor,i:(filename:'1',fontScale:14,fontUsePx:'0',j:1,lang:___c,selection:(endColumn:1,endLineNumber:2,positionColumn:1,positionLineNumber:2,selectionStartColumn:1,selectionStartLineNumber:2,startColumn:1,startLineNumber:2),source:'%23include+%3Cstring.h%3E%0A%0Aunsigned+long+load_word(const+unsigned+char+*p)%0A%7B%0A++++unsigned+long+w%3B%0A++++memcpy(%26w,+p,+sizeof+w)%3B%0A++++return+w%3B%0A%7D'),l:'5',n:'0',o:'C+source+%231',t:'0')),k:44.32601880877743,l:'4',m:71.84466019417478,n:'0',o:'',s:0,t:'0'),(g:!((h:compiler,i:(compiler:cclang2310,filters:(b:'0',binary:'1',binaryObject:'1',commentOnly:'0',debugCalls:'1',demangle:'0',directives:'0',execute:'1',intel:'1',libraryCode:'0',trim:'0',verboseDemangling:'0'),flagsViewOpen:'1',fontScale:14,fontUsePx:'0',j:1,lang:___c,libs:!(),options:'-O3',overrides:!(),selection:(endColumn:1,endLineNumber:1,positionColumn:1,positionLineNumber:1,selectionStartColumn:1,selectionStartLineNumber:1,startColumn:1,startLineNumber:1),source:1),l:'5',n:'0',o:'+x86-64+clang+23.1.0+(Editor+%231)',t:'0')),header:(),k:55.67398119122258,l:'4',m:100,n:'0',o:'',s:0,t:'0')),l:'2',m:64.56310679611653,n:'0',o:'',t:'0'),(g:!((h:output,i:(editorid:1,fontScale:14,fontUsePx:'0',j:1,wrap:'1'),l:'5',n:'0',o:'Output+of+x86-64+clang+23.1.0+(Compiler+%231)',t:'0')),header:(),l:'4',m:35.4368932038835,n:'0',o:'',s:0,t:'0')),l:'3',n:'0',o:'',t:'0')),version:4
eight byte loads plus storeshttps://godbolt.org/#g:!((g:!((g:!((g:!((h:codeEditor,i:(filename:'1',fontScale:14,fontUsePx:'0',j:1,lang:___c,selection:(endColumn:1,endLineNumber:2,positionColumn:1,positionLineNumber:2,selectionStartColumn:1,selectionStartLineNumber:2,startColumn:1,startLineNumber:2),source:'%23include+%3Cstring.h%3E%0A%0Aunsigned+long+load_word(const+unsigned+char+*p)%0A%7B%0A++++unsigned+long+w%3B%0A++++memcpy(%26w,+p,+sizeof+w)%3B%0A++++return+w%3B%0A%7D'),l:'5',n:'0',o:'C+source+%231',t:'0')),k:44.32601880877743,l:'4',m:71.84466019417478,n:'0',o:'',s:0,t:'0'),(g:!((h:compiler,i:(compiler:rv64-cclang2310,filters:(b:'0',binary:'1',binaryObject:'1',commentOnly:'0',debugCalls:'1',demangle:'0',directives:'0',execute:'1',intel:'1',libraryCode:'0',trim:'0',verboseDemangling:'0'),flagsViewOpen:'1',fontScale:14,fontUsePx:'0',j:1,lang:___c,libs:!(),options:'-O3',overrides:!(),selection:(endColumn:1,endLineNumber:1,positionColumn:1,positionLineNumber:1,selectionStartColumn:1,selectionStartLineNumber:1,startColumn:1,startLineNumber:1),source:1),l:'5',n:'0',o:'+RISC-V+rv64gc+clang+23.1.0+(Editor+%231)',t:'0')),header:(),k:55.67398119122258,l:'4',m:100,n:'0',o:'',s:0,t:'0')),l:'2',m:64.56310679611653,n:'0',o:'',t:'0'),(g:!((h:output,i:(editorid:1,fontScale:14,fontUsePx:'0',j:1,wrap:'1'),l:'5',n:'0',o:'Output+of+RISC-V+rv64gc+clang+23.1.0+(Compiler+%231)',t:'0')),header:(),l:'4',m:35.4368932038835,n:'0',o:'',s:0,t:'0')),l:'3',n:'0',o:'',t:'0')),version:4
memcpy call per wordhttps://godbolt.org/#g:!((g:!((g:!((g:!((h:codeEditor,i:(filename:'1',fontScale:14,fontUsePx:'0',j:1,lang:___c,selection:(endColumn:1,endLineNumber:2,positionColumn:1,positionLineNumber:2,selectionStartColumn:1,selectionStartLineNumber:2,startColumn:1,startLineNumber:2),source:'%23include+%3Cstring.h%3E%0A%0Aunsigned+long+load_word(const+unsigned+char+*p)%0A%7B%0A++++unsigned+long+w%3B%0A++++memcpy(%26w,+p,+sizeof+w)%3B%0A++++return+w%3B%0A%7D'),l:'5',n:'0',o:'C+source+%231',t:'0')),k:44.32601880877743,l:'4',m:71.84466019417478,n:'0',o:'',s:0,t:'0'),(g:!((h:compiler,i:(compiler:csparc64g1610,filters:(b:'0',binary:'1',binaryObject:'1',commentOnly:'0',debugCalls:'1',demangle:'0',directives:'0',execute:'1',intel:'1',libraryCode:'0',trim:'0',verboseDemangling:'0'),flagsViewOpen:'1',fontScale:14,fontUsePx:'0',j:1,lang:___c,libs:!(),options:'-O3',overrides:!(),selection:(endColumn:1,endLineNumber:1,positionColumn:1,positionLineNumber:1,selectionStartColumn:1,selectionStartLineNumber:1,startColumn:1,startLineNumber:1),source:1),l:'5',n:'0',o:'+SPARC64+gcc+16.1.0+(Editor+%231)',t:'0')),header:(),k:55.67398119122258,l:'4',m:100,n:'0',o:'',s:0,t:'0')),l:'2',m:64.56310679611653,n:'0',o:'',t:'0'),(g:!((h:output,i:(editorid:1,fontScale:14,fontUsePx:'0',j:1,wrap:'1'),l:'5',n:'0',o:'Output+of+SPARC64+gcc+16.1.0+(Compiler+%231)',t:'0')),header:(),l:'4',m:35.4368932038835,n:'0',o:'',s:0,t:'0')),l:'3',n:'0',o:'',t:'0')),version:4
Please reload this pagehttps://github.com/python/cpython/pull/122902
https://github.com/StanFromIreland
Read the short tail from the buffer starthttps://github.com/python/cpython/pull/122902/commits/ce16f352a85bc67b685965aaa0f6d617441f7c13
ce16f35https://github.com/python/cpython/pull/122902/commits/ce16f352a85bc67b685965aaa0f6d617441f7c13
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 7, 2026 https://github.com/python/cpython/pull/122902#pullrequestreview-5809526946
View reviewed changes https://github.com/python/cpython/pull/122902/files/ce16f352a85bc67b685965aaa0f6d617441f7c13
vstinnerhttps://github.com/vstinner
https://github.com/python/cpython/pull/122902#pullrequestreview-5809526946
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://gist.github.com/vstinner/b47d2d3340607510a3d46b26955d83dehttps://gist.github.com/vstinner/b47d2d3340607510a3d46b26955d83de
Please reload this pagehttps://github.com/python/cpython/pull/122902
Objects/stringlib/find_max_char.hhttps://github.com/python/cpython/pull/122902/files/ce16f352a85bc67b685965aaa0f6d617441f7c13#diff-8956a8f467b218ff8cccf2c348fd30f9225a7bb47cd1df7e469e047f8233f930
Please reload this pagehttps://github.com/python/cpython/pull/122902
Objects/stringlib/find_max_char.hhttps://github.com/python/cpython/pull/122902/files/ce16f352a85bc67b685965aaa0f6d617441f7c13#diff-8956a8f467b218ff8cccf2c348fd30f9225a7bb47cd1df7e469e047f8233f930
Please reload this pagehttps://github.com/python/cpython/pull/122902
Objects/stringlib/find_max_char.hhttps://github.com/python/cpython/pull/122902/files/ce16f352a85bc67b685965aaa0f6d617441f7c13#diff-8956a8f467b218ff8cccf2c348fd30f9225a7bb47cd1df7e469e047f8233f930
Please reload this pagehttps://github.com/python/cpython/pull/122902
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 7, 2026 https://github.com/python/cpython/pull/122902#ref-pullrequest-6153417513
gh-161145: Test more bytes simultaneously in find_first_nonascii #161147 https://github.com/python/cpython/pull/161147
https://github.com/StanFromIreland
https://github.com/vstinner
Apply Victor's suggestionshttps://github.com/python/cpython/pull/122902/commits/864423a77b8e9abb8febe37539b9f9c33eafe699
864423ahttps://github.com/python/cpython/pull/122902/commits/864423a77b8e9abb8febe37539b9f9c33eafe699
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Nov 7, 2026https://github.com/python/cpython/pull/122902#issuecomment-6712128726
Please reload this pagehttps://github.com/python/cpython/pull/122902
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
vstinnerhttps://github.com/vstinner
November 7, 2026 19:42https://github.com/python/cpython/pull/122902#event-35456077656
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 7, 2026https://github.com/python/cpython/pull/122902#issuecomment-6713095963
Please reload this pagehttps://github.com/python/cpython/pull/122902
Please reload this pagehttps://github.com/python/cpython/pull/122902
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 7, 2026https://github.com/python/cpython/pull/122902#issuecomment-6713229087
Please reload this pagehttps://github.com/python/cpython/pull/122902
https://github.com/StanFromIreland
Test blocks before folding into the acchttps://github.com/python/cpython/pull/122902/commits/ca3ce0c1c64d8b905563236410205159fef638d8
ca3ce0chttps://github.com/python/cpython/pull/122902/commits/ca3ce0c1c64d8b905563236410205159fef638d8
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Nov 8, 2026https://github.com/python/cpython/pull/122902#issuecomment-6720553842
Please reload this pagehttps://github.com/python/cpython/pull/122902
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 8, 2026https://github.com/python/cpython/pull/122902#issuecomment-6722469544
https://www.githubstatus.com/incidents/pyynvrm1vskwhttps://www.githubstatus.com/incidents/pyynvrm1vskw
Please reload this pagehttps://github.com/python/cpython/pull/122902
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 8, 2026https://github.com/python/cpython/pull/122902#issuecomment-6722567878
Please reload this pagehttps://github.com/python/cpython/pull/122902
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 8, 2026 https://github.com/python/cpython/pull/122902#pullrequestreview-5818220114
View reviewed changes https://github.com/python/cpython/pull/122902/files/ca3ce0c1c64d8b905563236410205159fef638d8
vstinnerhttps://github.com/vstinner
https://github.com/python/cpython/pull/122902#pullrequestreview-5818220114
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
stress testhttps://github.com/python/cpython/pull/122902#pullrequestreview-5809526946
Please reload this pagehttps://github.com/python/cpython/pull/122902
Objects/stringlib/find_max_char.hhttps://github.com/python/cpython/pull/122902/files/ca3ce0c1c64d8b905563236410205159fef638d8#diff-8956a8f467b218ff8cccf2c348fd30f9225a7bb47cd1df7e469e047f8233f930
Please reload this pagehttps://github.com/python/cpython/pull/122902
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 8, 2026https://github.com/python/cpython/pull/122902#issuecomment-6722699116
@StanFromIrelandhttps://github.com/StanFromIreland
benchmark numbershttps://github.com/python/cpython/pull/122902#issuecomment-6529336888
Please reload this pagehttps://github.com/python/cpython/pull/122902
https://github.com/StanFromIreland
Use for loop insteadhttps://github.com/python/cpython/pull/122902/commits/08035102f82675f1622ab2b3b550eeff32be5f13
0803510https://github.com/python/cpython/pull/122902/commits/08035102f82675f1622ab2b3b550eeff32be5f13
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Nov 8, 2026https://github.com/python/cpython/pull/122902#issuecomment-6725818664
Please reload this pagehttps://github.com/python/cpython/pull/122902
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
ff042f1https://github.com/python/cpython/commit/ff042f13775b0d905b20e425df18d35c2289cb43
Nov 9, 2026https://github.com/python/cpython/pull/122902#event-35575086850
Please reload this pagehttps://github.com/python/cpython/pull/122902
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Nov 9, 2026https://github.com/python/cpython/pull/122902#event-35575093428
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 9, 2026https://github.com/python/cpython/pull/122902#issuecomment-6742314395
Please reload this pagehttps://github.com/python/cpython/pull/122902
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F122902
https://github.com/eendebakpt
eendebakpt https://github.com/eendebakpt
https://github.com/python/cpython/pull/122902/files/c14a157ded1c70a5fb327932d2399a16a1e112c7
https://github.com/StanFromIreland
StanFromIreland https://github.com/StanFromIreland
https://github.com/python/cpython/pull/122902/files/c14a157ded1c70a5fb327932d2399a16a1e112c7
https://github.com/vstinner
vstinner https://github.com/vstinner
https://github.com/python/cpython/pull/122902/files/ca3ce0c1c64d8b905563236410205159fef638d8
https://github.com/picnixz
picnixz https://github.com/picnixz
https://github.com/python/cpython/pull/122902/files/c14a157ded1c70a5fb327932d2399a16a1e112c7
Please reload this pagehttps://github.com/python/cpython/pull/122902
https://github.com/StanFromIreland
StanFromIreland https://github.com/StanFromIreland
type-feature https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-feature
Please reload this pagehttps://github.com/python/cpython/pull/122902
https://github.com/ruema
https://github.com/bedevere-bot
https://github.com/StanFromIreland
https://github.com/eendebakpt
https://github.com/chris-eibl
https://github.com/picnixz
https://github.com/vstinner
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.