René's URL Explorer Experiment


Title: gh-120196: Faster ascii_decode and find_max_char implementations by rhpvorderman · Pull Request #120212 · python/cpython · GitHub

Open Graph Title: gh-120196: Faster ascii_decode and find_max_char implementations by rhpvorderman · Pull Request #120212 · python/cpython

X Title: gh-120196: Faster ascii_decode and find_max_char implementations by rhpvorderman · Pull Request #120212 · python/cpython

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

Open Graph Description: One byte find_max_char. This now follows the following algorithm. Find the start where the first aligned load can take place. Bitwise OR all characters together up to the aligned start and check w...

X Description: One byte find_max_char. This now follows the following algorithm. Find the start where the first aligned load can take place. Bitwise OR all characters together up to the aligned start and check w...

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

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:f63c0cf5-ac88-154e-2877-8bd0cb21c0f4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB316:3DD488:44A7A7D:571D98F:6B023997
html-safe-nonce24cf411ff7f4feb6baed176cd93755b19d68de25a51c632512c50cdcc07f21a0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzE2OjNERDQ4ODo0NEE3QTdEOjU3MUQ5OEY6NkIwMjM5OTciLCJ2aXNpdG9yX2lkIjoiMTIxNzY2ODk4MDIwMjk0NDkxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacbff30f15c17adfa3080d8fb58b49127325cc3bcde14b4e6420a0d32af1f80bae
hovercard-subject-tagpull_request:1908908300
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/120212/commits
twitter:imagehttps://opengraph.githubassets.com/a47e48d7e4adf3d688455ac042586dcee1419cb95a9c39785974cee165ec0f86/python/cpython/pull/120212
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a47e48d7e4adf3d688455ac042586dcee1419cb95a9c39785974cee165ec0f86/python/cpython/pull/120212
og:image:altOne byte find_max_char. This now follows the following algorithm. Find the start where the first aligned load can take place. Bitwise OR all characters together up to the aligned start and check w...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerhpvorderman
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/120212/commits#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F120212%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%2F120212%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/120212/commits
Reloadhttps://github.com/python/cpython/pull/120212/commits
Reloadhttps://github.com/python/cpython/pull/120212/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
rhpvordermanhttps://github.com/rhpvorderman
python:mainhttps://github.com/python/cpython/tree/main
rhpvorderman:MICROOPTIMIZATIONShttps://github.com/rhpvorderman/cpython/tree/MICROOPTIMIZATIONS
Conversationhttps://github.com/python/cpython/pull/120212
Commits24 (24)https://github.com/python/cpython/pull/120212/commits
Checkshttps://github.com/python/cpython/pull/120212/checks
Files changedhttps://github.com/python/cpython/pull/120212/files
gh-120196: Faster ascii_decode and find_max_char implementationshttps://github.com/python/cpython/pull/120212/commits#top
rhpvordermanhttps://github.com/rhpvorderman
python:mainhttps://github.com/python/cpython/tree/main
rhpvorderman:MICROOPTIMIZATIONShttps://github.com/rhpvorderman/cpython/tree/MICROOPTIMIZATIONS
Write an unrolled version of find_max_charhttps://github.com/python/cpython/pull/120212/commits/a54bf86c19c6dc5867e6cf783932eee580041897
https://github.com/rhpvorderman
rhpvordermanhttps://github.com/python/cpython/commits?author=rhpvorderman
a54bf86https://github.com/python/cpython/pull/120212/commits/a54bf86c19c6dc5867e6cf783932eee580041897
https://github.com/python/cpython/tree/a54bf86c19c6dc5867e6cf783932eee580041897
Unroll 8 characters rather than 4 to improve vectorization in find_max_charhttps://github.com/python/cpython/pull/120212/commits/71ff457d0ff4ede9486ce9160568cd00ab6f7307
https://github.com/rhpvorderman
rhpvordermanhttps://github.com/python/cpython/commits?author=rhpvorderman
71ff457https://github.com/python/cpython/pull/120212/commits/71ff457d0ff4ede9486ce9160568cd00ab6f7307
https://github.com/python/cpython/tree/71ff457d0ff4ede9486ce9160568cd00ab6f7307
Bigger chunk ascii decodinghttps://github.com/python/cpython/pull/120212/commits/98a6449411264f42f8151778a490a8ec5b29dbaa
https://github.com/rhpvorderman
rhpvordermanhttps://github.com/python/cpython/commits?author=rhpvorderman
98a6449https://github.com/python/cpython/pull/120212/commits/98a6449411264f42f8151778a490a8ec5b29dbaa
https://github.com/python/cpython/tree/98a6449411264f42f8151778a490a8ec5b29dbaa
Fix whitespace issueshttps://github.com/python/cpython/pull/120212/commits/10527c647f6b6a2d8642815f0dbcc913d2326e32
https://github.com/rhpvorderman
rhpvordermanhttps://github.com/python/cpython/commits?author=rhpvorderman
10527c6https://github.com/python/cpython/pull/120212/commits/10527c647f6b6a2d8642815f0dbcc913d2326e32
https://github.com/python/cpython/tree/10527c647f6b6a2d8642815f0dbcc913d2326e32
Fix compiler warningshttps://github.com/python/cpython/pull/120212/commits/f0f413923ed0dea05c3446f17a80d3cc2090d94e
https://github.com/rhpvorderman
rhpvordermanhttps://github.com/python/cpython/commits?author=rhpvorderman
f0f4139https://github.com/python/cpython/pull/120212/commits/f0f413923ed0dea05c3446f17a80d3cc2090d94e
https://github.com/python/cpython/tree/f0f413923ed0dea05c3446f17a80d3cc2090d94e
Prevent re-read of same valuehttps://github.com/python/cpython/pull/120212/commits/849a068cc900cda1bc2feb92ebfc83c12c9337b5
https://github.com/rhpvorderman
rhpvordermanhttps://github.com/python/cpython/commits?author=rhpvorderman
849a068https://github.com/python/cpython/pull/120212/commits/849a068cc900cda1bc2feb92ebfc83c12c9337b5
https://github.com/python/cpython/tree/849a068cc900cda1bc2feb92ebfc83c12c9337b5
Simplify find_max_char initializationhttps://github.com/python/cpython/pull/120212/commits/fad19a046fcbf071d39b57c56b81b89ee04355e8
https://github.com/rhpvorderman
rhpvordermanhttps://github.com/python/cpython/commits?author=rhpvorderman
fad19a0https://github.com/python/cpython/pull/120212/commits/fad19a046fcbf071d39b57c56b81b89ee04355e8
https://github.com/python/cpython/tree/fad19a046fcbf071d39b57c56b81b89ee04355e8
Add missing incrementshttps://github.com/python/cpython/pull/120212/commits/f04bb2c85c53ca41c3d06098f79c0201aed8190c
https://github.com/rhpvorderman
rhpvordermanhttps://github.com/python/cpython/commits?author=rhpvorderman
f04bb2chttps://github.com/python/cpython/pull/120212/commits/f04bb2c85c53ca41c3d06098f79c0201aed8190c
https://github.com/python/cpython/tree/f04bb2c85c53ca41c3d06098f79c0201aed8190c
Add blurbhttps://github.com/python/cpython/pull/120212/commits/cd0fc5ef6803689d1aad07b18a294f0ce8b1b19e
https://github.com/rhpvorderman
rhpvordermanhttps://github.com/python/cpython/commits?author=rhpvorderman
cd0fc5ehttps://github.com/python/cpython/pull/120212/commits/cd0fc5ef6803689d1aad07b18a294f0ce8b1b19e
https://github.com/python/cpython/tree/cd0fc5ef6803689d1aad07b18a294f0ce8b1b19e
Replace unroll_end with unrolled_endhttps://github.com/python/cpython/pull/120212/commits/8f0fd56b7512dc648861392c05c794594136c869
https://github.com/rhpvorderman
rhpvordermanhttps://github.com/python/cpython/commits?author=rhpvorderman
8f0fd56https://github.com/python/cpython/pull/120212/commits/8f0fd56b7512dc648861392c05c794594136c869
https://github.com/python/cpython/tree/8f0fd56b7512dc648861392c05c794594136c869
Reword burbhttps://github.com/python/cpython/pull/120212/commits/37aee7a930d79691927b826f7dd51058bd926baf
rhpvordermanhttps://github.com/python/cpython/commits?author=rhpvorderman
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
37aee7ahttps://github.com/python/cpython/pull/120212/commits/37aee7a930d79691927b826f7dd51058bd926baf
https://github.com/python/cpython/tree/37aee7a930d79691927b826f7dd51058bd926baf
Update Objects/stringlib/find_max_char.hhttps://github.com/python/cpython/pull/120212/commits/a6fc417ea1b68342a31fa5b49c41196f508c99af
rhpvordermanhttps://github.com/python/cpython/commits?author=rhpvorderman
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
a6fc417https://github.com/python/cpython/pull/120212/commits/a6fc417ea1b68342a31fa5b49c41196f508c99af
https://github.com/python/cpython/tree/a6fc417ea1b68342a31fa5b49c41196f508c99af
Merge branch 'main' into MICROOPTIMIZATIONShttps://github.com/python/cpython/pull/120212/commits/104ca623d8cca2658aa33c94f598910f867f3bf8
https://github.com/rhpvorderman
rhpvordermanhttps://github.com/python/cpython/commits?author=rhpvorderman
104ca62https://github.com/python/cpython/pull/120212/commits/104ca623d8cca2658aa33c94f598910f867f3bf8
https://github.com/python/cpython/tree/104ca623d8cca2658aa33c94f598910f867f3bf8
Merge branch 'main' into MICROOPTIMIZATIONShttps://github.com/python/cpython/pull/120212/commits/d46551735a3e99c9ccb67495e69df32c7d05a567
https://github.com/rhpvorderman
rhpvordermanhttps://github.com/python/cpython/commits?author=rhpvorderman
d465517https://github.com/python/cpython/pull/120212/commits/d46551735a3e99c9ccb67495e69df32c7d05a567
https://github.com/python/cpython/tree/d46551735a3e99c9ccb67495e69df32c7d05a567
Reuse find_max_char for bytes objectshttps://github.com/python/cpython/pull/120212/commits/1ce308e9d70f806e507ab1efb1e68c988ebeffa3
https://github.com/rhpvorderman
rhpvordermanhttps://github.com/python/cpython/commits?author=rhpvorderman
1ce308ehttps://github.com/python/cpython/pull/120212/commits/1ce308e9d70f806e507ab1efb1e68c988ebeffa3
https://github.com/python/cpython/tree/1ce308e9d70f806e507ab1efb1e68c988ebeffa3
Simplify the find_max_char function by loading unalignedhttps://github.com/python/cpython/pull/120212/commits/48f1e84750e2dac0db0d295e68318a8cbaac5616
https://github.com/rhpvorderman
rhpvordermanhttps://github.com/python/cpython/commits?author=rhpvorderman
48f1e84https://github.com/python/cpython/pull/120212/commits/48f1e84750e2dac0db0d295e68318a8cbaac5616
https://github.com/python/cpython/tree/48f1e84750e2dac0db0d295e68318a8cbaac5616
Allow optimized unaligned loads and simplify ascii_decodehttps://github.com/python/cpython/pull/120212/commits/21de80470399163865acf0dc2c760180c8df08d1
https://github.com/rhpvorderman
rhpvordermanhttps://github.com/python/cpython/commits?author=rhpvorderman
21de804https://github.com/python/cpython/pull/120212/commits/21de80470399163865acf0dc2c760180c8df08d1
https://github.com/python/cpython/tree/21de80470399163865acf0dc2c760180c8df08d1
Add loop for more optimal assemblyhttps://github.com/python/cpython/pull/120212/commits/1ec2113f2e64aaed97cfe74fba26975a6b078a97
https://github.com/rhpvorderman
rhpvordermanhttps://github.com/python/cpython/commits?author=rhpvorderman
1ec2113https://github.com/python/cpython/pull/120212/commits/1ec2113f2e64aaed97cfe74fba26975a6b078a97
https://github.com/python/cpython/tree/1ec2113f2e64aaed97cfe74fba26975a6b078a97
Also perform an unalgined load at the endhttps://github.com/python/cpython/pull/120212/commits/0258ae0b47b5b0efa9d44f435bd3475e09a9763a
https://github.com/rhpvorderman
rhpvordermanhttps://github.com/python/cpython/commits?author=rhpvorderman
0258ae0https://github.com/python/cpython/pull/120212/commits/0258ae0b47b5b0efa9d44f435bd3475e09a9763a
https://github.com/python/cpython/tree/0258ae0b47b5b0efa9d44f435bd3475e09a9763a
Fix compiler warninghttps://github.com/python/cpython/pull/120212/commits/ec76b74c74a04350c9c761e013ee37c3181ea01c
https://github.com/rhpvorderman
rhpvordermanhttps://github.com/python/cpython/commits?author=rhpvorderman
ec76b74https://github.com/python/cpython/pull/120212/commits/ec76b74c74a04350c9c761e013ee37c3181ea01c
https://github.com/python/cpython/tree/ec76b74c74a04350c9c761e013ee37c3181ea01c
Revert "Reuse find_max_char for bytes objects"https://github.com/python/cpython/pull/120212/commits/845eb4e14749292ff5b3ddb6f0c64876f8d05ca7
https://github.com/rhpvorderman
rhpvordermanhttps://github.com/python/cpython/commits?author=rhpvorderman
845eb4ehttps://github.com/python/cpython/pull/120212/commits/845eb4e14749292ff5b3ddb6f0c64876f8d05ca7
https://github.com/python/cpython/tree/845eb4e14749292ff5b3ddb6f0c64876f8d05ca7
Merge branch 'main' into MICROOPTIMIZATIONShttps://github.com/python/cpython/pull/120212/commits/f8cc68ded0ea9fb689536ce4661e199add21b87a
https://github.com/rhpvorderman
rhpvordermanhttps://github.com/python/cpython/commits?author=rhpvorderman
f8cc68dhttps://github.com/python/cpython/pull/120212/commits/f8cc68ded0ea9fb689536ce4661e199add21b87a
https://github.com/python/cpython/tree/f8cc68ded0ea9fb689536ce4661e199add21b87a
Improve commentshttps://github.com/python/cpython/pull/120212/commits/89ab2c98cefeeeb5f1d3f99049b284d1fd95c17d
https://github.com/rhpvorderman
rhpvordermanhttps://github.com/python/cpython/commits?author=rhpvorderman
89ab2c9https://github.com/python/cpython/pull/120212/commits/89ab2c98cefeeeb5f1d3f99049b284d1fd95c17d
https://github.com/python/cpython/tree/89ab2c98cefeeeb5f1d3f99049b284d1fd95c17d
Merge branch 'main' into MICROOPTIMIZATIONShttps://github.com/python/cpython/pull/120212/commits/002b7ec85915dbd27a3068dbc8549316e9655572
https://github.com/rhpvorderman
rhpvordermanhttps://github.com/python/cpython/commits?author=rhpvorderman
002b7echttps://github.com/python/cpython/pull/120212/commits/002b7ec85915dbd27a3068dbc8549316e9655572
https://github.com/python/cpython/tree/002b7ec85915dbd27a3068dbc8549316e9655572
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.