| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:35417c01-fc3f-5c83-8604-5e2aac72d4e3 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E7D4:2D40DE:3226D97:3FD6709:6B02103C |
| html-safe-nonce | 4eb6f69d1a2a0b47687ceb9ccb2cd373cc18abed18072bd59db654e8c2f02420 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0Q0OjJENDBERTozMjI2RDk3OjNGRDY3MDk6NkIwMjEwM0MiLCJ2aXNpdG9yX2lkIjoiNjU1ODIwNTg3MTA4Nzk4NTI0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0d0a874aa3f992728700e562f3786ff9c0fdfeaeaa90e429efa0c7b9a060c31d |
| hovercard-subject-tag | pull_request:2013800993 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/122902/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/d001a3b0efc00054f19cabad54ca0d498cb2e5d543a408caafea5e483e52e32a/python/cpython/pull/122902 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d001a3b0efc00054f19cabad54ca0d498cb2e5d543a408caafea5e483e52e32a/python/cpython/pull/122902 |
| og:image:alt | Change to find_max_char to speedup string creation.
See issue #122901.
Issue: Improve performance of find_max_char #122901 |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ruema |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-cache |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/python/cpython/pull/122902#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F122902 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F122902 |
| 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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/122902 |
| Reload | https://github.com/python/cpython/pull/122902 |
| Reload | https://github.com/python/cpython/pull/122902 |
| python | https://github.com/python |
| cpython | https://github.com/python/cpython |
| Code | https://github.com/python/cpython |
| Issues5k+ (5k+) | https://github.com/python/cpython/issues |
| Pull requests2.4k (2.4k) | https://github.com/python/cpython/pulls |
| Actions | https://github.com/python/cpython/actions |
| Projects | https://github.com/python/cpython/projects |
| Security and quality | https://github.com/python/cpython/security |
| Insights | https://github.com/python/cpython/insights |
| https://github.com/python/cpython |
| StanFromIreland | https://github.com/StanFromIreland |
| python:main | https://github.com/python/cpython/tree/main |
| ruema:feature/speedup_find_max_char | https://github.com/ruema/cpython/tree/feature/speedup_find_max_char |
| Conversation | https://github.com/python/cpython/pull/122902 |
| Commits16 (16) | https://github.com/python/cpython/pull/122902/commits |
| Checks | https://github.com/python/cpython/pull/122902/checks |
| Files changed | https://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 |
| StanFromIreland | https://github.com/StanFromIreland |
| python:main | https://github.com/python/cpython/tree/main |
| ruema:feature/speedup_find_max_char | https://github.com/ruema/cpython/tree/feature/speedup_find_max_char |
|
| https://github.com/ruema |
| ruema | https://github.com/ruema |
| Aug 11, 2024 | https://github.com/python/cpython/pull/122902#issue-2459571146 |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| #122901 | https://github.com/python/cpython/issues/122901 |
| Improve performance of find_max_char #122901 | https://github.com/python/cpython/issues/122901 |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
|
| https://github.com/ruema |
| Improve performance of find_max_char | https://github.com/python/cpython/pull/122902/commits/b0f832188ddd578ed7f492bd72c1f19903cbfc55 |
| b0f8321 | https://github.com/python/cpython/pull/122902/commits/b0f832188ddd578ed7f492bd72c1f19903cbfc55 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://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-app | https://github.com/apps/bedevere-app |
|
awaiting review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22 |
| Aug 11, 2024 | https://github.com/python/cpython/pull/122902#event-13834673365 |
| ruema | https://github.com/ruema |
| August 11, 2024 13:17 | https://github.com/python/cpython/pull/122902#commits-pushed-a43c1fc |
|
| https://github.com/ruema |
| missing ) added | https://github.com/python/cpython/pull/122902/commits/a43c1fc69953e2606b9e6aeb2b289a32dd282630 |
| a43c1fc | https://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 |
| d597175 | https://github.com/python/cpython/pull/122902/commits/d597175261366d38546cc8010fd76f3f2a74d32b |
| https://github.com/apps/github-actions |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F122902 |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
|
stale
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Astale |
| Apr 18, 2026 | https://github.com/python/cpython/pull/122902#event-24627800630 |
|
| https://github.com/StanFromIreland |
| Merge branch 'main' into feature/speedup_find_max_char | https://github.com/python/cpython/pull/122902/commits/4a8b4d1bcf45545d67e6deb33435c407129cbaa5 |
| 4a8b4d1 | https://github.com/python/cpython/pull/122902/commits/4a8b4d1bcf45545d67e6deb33435c407129cbaa5 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
type-feature
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-feature |
| Oct 30, 2026 | https://github.com/python/cpython/pull/122902#event-34699097332 |
|
| https://github.com/StanFromIreland |
| Re-write and move the news entry | https://github.com/python/cpython/pull/122902/commits/fe362fe54236e3e0696ca4ef327be787d0424bbb |
| fe362fe | https://github.com/python/cpython/pull/122902/commits/fe362fe54236e3e0696ca4ef327be787d0424bbb |
| https://github.com/StanFromIreland |
| StanFromIreland | https://github.com/StanFromIreland |
| Oct 30, 2026 | https://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 |
| 1650b4b | https://github.com/python/cpython/pull/122902/commits/1650b4b2914b2b805e07d55576f830592f8f3f6a |
| https://github.com/StanFromIreland |
| StanFromIreland | https://github.com/StanFromIreland |
| Oct 30, 2026 | https://github.com/python/cpython/pull/122902#event-34700514935 |
|
| https://github.com/StanFromIreland |
| Little nits | https://github.com/python/cpython/pull/122902/commits/f524f84c4650094dc34b217bbaaabf00bb0171ec |
| f524f84 | https://github.com/python/cpython/pull/122902/commits/f524f84c4650094dc34b217bbaaabf00bb0171ec |
| https://github.com/StanFromIreland |
| StanFromIreland | https://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, 2026 | https://github.com/python/cpython/pull/122902#event-34701060007 |
| https://github.com/bedevere-bot |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F122902 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://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, 2026 | https://github.com/python/cpython/pull/122902#event-34701066153 |
| https://github.com/StanFromIreland |
| StanFromIreland | https://github.com/StanFromIreland |
| Oct 30, 2026 | https://github.com/python/cpython/pull/122902#issuecomment-6529336888 |
| Please reload this page | https://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 |
| 1daa7ee | https://github.com/python/cpython/pull/122902/commits/1daa7ee9cd0c46f37a82997ff367c1f6389badf6 |
| https://github.com/StanFromIreland |
| StanFromIreland | https://github.com/StanFromIreland |
| Oct 30, 2026 | https://github.com/python/cpython/pull/122902#issuecomment-6531662040 |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| https://github.com/StanFromIreland |
| StanFromIreland | https://github.com/StanFromIreland |
| eendebakpt | https://github.com/eendebakpt |
| October 30, 2026 19:24 | https://github.com/python/cpython/pull/122902#event-34725401762 |
| https://github.com/StanFromIreland |
| StanFromIreland | https://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, 2026 | https://github.com/python/cpython/pull/122902#event-34725548729 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://github.com/bedevere-bot |
| Oct 30, 2026 | https://github.com/python/cpython/pull/122902#issuecomment-6531706617 |
| @StanFromIreland | https://github.com/StanFromIreland |
| 1daa7ee | https://github.com/python/cpython/commit/1daa7ee9cd0c46f37a82997ff367c1f6389badf6 |
| https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F122902%2Fmerge | https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F122902%2Fmerge |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://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, 2026 | https://github.com/python/cpython/pull/122902#event-34725554098 |
| https://github.com/StanFromIreland |
| StanFromIreland | https://github.com/StanFromIreland |
| Oct 30, 2026 | https://github.com/python/cpython/pull/122902#issuecomment-6531718540 |
| @vstinner | https://github.com/vstinner |
| @eendebakpt | https://github.com/eendebakpt |
| @picnixz | https://github.com/picnixz |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| https://github.com/eendebakpt |
| eendebakpt | https://github.com/eendebakpt |
| Oct 30, 2026 | https://github.com/python/cpython/pull/122902#issuecomment-6533593045 |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| pr122902..find-max-char-reduce | https://github.com/eendebakpt/cpython/compare/pr122902..find-max-char-reduce?diff=split |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| https://github.com/StanFromIreland |
| StanFromIreland | https://github.com/StanFromIreland |
| Oct 30, 2026 | https://github.com/python/cpython/pull/122902#issuecomment-6533724670 |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| https://github.com/StanFromIreland |
| StanFromIreland | https://github.com/StanFromIreland |
| Oct 30, 2026 | https://github.com/python/cpython/pull/122902#issuecomment-6534156719 |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| your branch | https://github.com/eendebakpt/cpython/compare/pr122902..find-max-char-reduce?diff=split |
| @eendebakpt | https://github.com/eendebakpt |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| https://github.com/eendebakpt |
| eendebakpt | https://github.com/eendebakpt |
| Oct 30, 2026 | https://github.com/python/cpython/pull/122902#issuecomment-6535397411 |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| https://github.com/StanFromIreland |
| StanFromIreland | https://github.com/StanFromIreland |
| Oct 30, 2026 | https://github.com/python/cpython/pull/122902#issuecomment-6535521845 |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| https://github.com/eendebakpt |
| eendebakpt | https://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.h | https://github.com/python/cpython/pull/122902/files/c14a157ded1c70a5fb327932d2399a16a1e112c7#diff-8956a8f467b218ff8cccf2c348fd30f9225a7bb47cd1df7e469e047f8233f930 |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
|
stale
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Astale |
| Nov 3, 2026 | https://github.com/python/cpython/pull/122902#event-34968628719 |
| https://github.com/StanFromIreland |
| StanFromIreland | https://github.com/StanFromIreland |
| Nov 3, 2026 | https://github.com/python/cpython/pull/122902#issuecomment-6615149811 |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| Nov 5, 2026 | https://github.com/python/cpython/pull/122902#issuecomment-6656264403 |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| https://github.com/StanFromIreland |
| StanFromIreland | https://github.com/StanFromIreland |
| Nov 6, 2026 | https://github.com/python/cpython/pull/122902#issuecomment-6684807024 |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| https://github.com/StanFromIreland |
| StanFromIreland | https://github.com/StanFromIreland |
| vstinner | https://github.com/vstinner |
| November 6, 2026 15:56 | https://github.com/python/cpython/pull/122902#event-35364839144 |
| https://github.com/vstinner |
| vstinner | https://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 |
| vstinner | https://github.com/vstinner |
| https://github.com/python/cpython/pull/122902#pullrequestreview-5805617004 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| Objects/stringlib/find_max_char.h | https://github.com/python/cpython/pull/122902/files/c14a157ded1c70a5fb327932d2399a16a1e112c7#diff-8956a8f467b218ff8cccf2c348fd30f9225a7bb47cd1df7e469e047f8233f930 |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| Objects/stringlib/find_max_char.h | https://github.com/python/cpython/pull/122902/files/c14a157ded1c70a5fb327932d2399a16a1e112c7#diff-8956a8f467b218ff8cccf2c348fd30f9225a7bb47cd1df7e469e047f8233f930 |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| Objects/stringlib/find_max_char.h | https://github.com/python/cpython/pull/122902/files/c14a157ded1c70a5fb327932d2399a16a1e112c7#diff-8956a8f467b218ff8cccf2c348fd30f9225a7bb47cd1df7e469e047f8233f930 |
| Please reload this page | https://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 |
| 0d6bed1 | https://github.com/python/cpython/pull/122902/commits/0d6bed1aef449be68933da38ab7d615f26913681 |
| https://github.com/StanFromIreland |
| StanFromIreland | https://github.com/StanFromIreland |
| vstinner | https://github.com/vstinner |
| November 6, 2026 20:23 | https://github.com/python/cpython/pull/122902#event-35387092437 |
|
| https://github.com/StanFromIreland |
| Align the pointer first and use plain word loads in the loops | https://github.com/python/cpython/pull/122902/commits/03dd976dfffcf75962eac9ab4eb504ad9852866e |
| 03dd976 | https://github.com/python/cpython/pull/122902/commits/03dd976dfffcf75962eac9ab4eb504ad9852866e |
| https://github.com/StanFromIreland |
| StanFromIreland | https://github.com/StanFromIreland |
| Nov 6, 2026 | https://github.com/python/cpython/pull/122902#issuecomment-6695135926 |
| true for x86-64 | https://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 stores | https://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 word | https://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 page | https://github.com/python/cpython/pull/122902 |
|
| https://github.com/StanFromIreland |
| Read the short tail from the buffer start | https://github.com/python/cpython/pull/122902/commits/ce16f352a85bc67b685965aaa0f6d617441f7c13 |
| ce16f35 | https://github.com/python/cpython/pull/122902/commits/ce16f352a85bc67b685965aaa0f6d617441f7c13 |
| https://github.com/vstinner |
| vstinner | https://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 |
| vstinner | https://github.com/vstinner |
| https://github.com/python/cpython/pull/122902#pullrequestreview-5809526946 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| https://gist.github.com/vstinner/b47d2d3340607510a3d46b26955d83de | https://gist.github.com/vstinner/b47d2d3340607510a3d46b26955d83de |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| Objects/stringlib/find_max_char.h | https://github.com/python/cpython/pull/122902/files/ce16f352a85bc67b685965aaa0f6d617441f7c13#diff-8956a8f467b218ff8cccf2c348fd30f9225a7bb47cd1df7e469e047f8233f930 |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| Objects/stringlib/find_max_char.h | https://github.com/python/cpython/pull/122902/files/ce16f352a85bc67b685965aaa0f6d617441f7c13#diff-8956a8f467b218ff8cccf2c348fd30f9225a7bb47cd1df7e469e047f8233f930 |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| Objects/stringlib/find_max_char.h | https://github.com/python/cpython/pull/122902/files/ce16f352a85bc67b685965aaa0f6d617441f7c13#diff-8956a8f467b218ff8cccf2c348fd30f9225a7bb47cd1df7e469e047f8233f930 |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| https://github.com/vstinner |
| vstinner | https://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 suggestions | https://github.com/python/cpython/pull/122902/commits/864423a77b8e9abb8febe37539b9f9c33eafe699 |
| 864423a | https://github.com/python/cpython/pull/122902/commits/864423a77b8e9abb8febe37539b9f9c33eafe699 |
| https://github.com/StanFromIreland |
| StanFromIreland | https://github.com/StanFromIreland |
| Nov 7, 2026 | https://github.com/python/cpython/pull/122902#issuecomment-6712128726 |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| https://github.com/StanFromIreland |
| StanFromIreland | https://github.com/StanFromIreland |
| vstinner | https://github.com/vstinner |
| November 7, 2026 19:42 | https://github.com/python/cpython/pull/122902#event-35456077656 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| Nov 7, 2026 | https://github.com/python/cpython/pull/122902#issuecomment-6713095963 |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| Nov 7, 2026 | https://github.com/python/cpython/pull/122902#issuecomment-6713229087 |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
|
| https://github.com/StanFromIreland |
| Test blocks before folding into the acc | https://github.com/python/cpython/pull/122902/commits/ca3ce0c1c64d8b905563236410205159fef638d8 |
| ca3ce0c | https://github.com/python/cpython/pull/122902/commits/ca3ce0c1c64d8b905563236410205159fef638d8 |
| https://github.com/StanFromIreland |
| StanFromIreland | https://github.com/StanFromIreland |
| Nov 8, 2026 | https://github.com/python/cpython/pull/122902#issuecomment-6720553842 |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| Nov 8, 2026 | https://github.com/python/cpython/pull/122902#issuecomment-6722469544 |
| https://www.githubstatus.com/incidents/pyynvrm1vskw | https://www.githubstatus.com/incidents/pyynvrm1vskw |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| Nov 8, 2026 | https://github.com/python/cpython/pull/122902#issuecomment-6722567878 |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| https://github.com/vstinner |
| vstinner | https://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 |
| vstinner | https://github.com/vstinner |
| https://github.com/python/cpython/pull/122902#pullrequestreview-5818220114 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| stress test | https://github.com/python/cpython/pull/122902#pullrequestreview-5809526946 |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| Objects/stringlib/find_max_char.h | https://github.com/python/cpython/pull/122902/files/ca3ce0c1c64d8b905563236410205159fef638d8#diff-8956a8f467b218ff8cccf2c348fd30f9225a7bb47cd1df7e469e047f8233f930 |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| Nov 8, 2026 | https://github.com/python/cpython/pull/122902#issuecomment-6722699116 |
| @StanFromIreland | https://github.com/StanFromIreland |
| benchmark numbers | https://github.com/python/cpython/pull/122902#issuecomment-6529336888 |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
|
| https://github.com/StanFromIreland |
| Use for loop instead | https://github.com/python/cpython/pull/122902/commits/08035102f82675f1622ab2b3b550eeff32be5f13 |
| 0803510 | https://github.com/python/cpython/pull/122902/commits/08035102f82675f1622ab2b3b550eeff32be5f13 |
| https://github.com/StanFromIreland |
| StanFromIreland | https://github.com/StanFromIreland |
| Nov 8, 2026 | https://github.com/python/cpython/pull/122902#issuecomment-6725818664 |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| https://github.com/StanFromIreland |
| StanFromIreland | https://github.com/StanFromIreland |
| ff042f1 | https://github.com/python/cpython/commit/ff042f13775b0d905b20e425df18d35c2289cb43 |
| Nov 9, 2026 | https://github.com/python/cpython/pull/122902#event-35575086850 |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
awaiting merge
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22 |
| Nov 9, 2026 | https://github.com/python/cpython/pull/122902#event-35575093428 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| Nov 9, 2026 | https://github.com/python/cpython/pull/122902#issuecomment-6742314395 |
| Please reload this page | https://github.com/python/cpython/pull/122902 |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://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 page | https://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 page | https://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 |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |