René's URL Explorer Experiment


Title: bpo-41972: Tweak fastsearch.h string search algorithms by sweeneyde · Pull Request #27091 · python/cpython · GitHub

Open Graph Title: bpo-41972: Tweak fastsearch.h string search algorithms by sweeneyde · Pull Request #27091 · python/cpython

X Title: bpo-41972: Tweak fastsearch.h string search algorithms by sweeneyde · Pull Request #27091 · python/cpython

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

Open Graph Description: https://bugs.python.org/issue41972

X Description: https://bugs.python.org/issue41972

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:2d890f6c-554e-7e59-b42c-af0ed3552095
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA700:12A5F2:14F3C8:1BD317:6969BCEB
html-safe-nonce323448b37b5f69e00e53c035d4bcecd293fbfa496111a2896935490d580d65db
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzAwOjEyQTVGMjoxNEYzQzg6MUJEMzE3OjY5NjlCQ0VCIiwidmlzaXRvcl9pZCI6IjUxNDAwODMyNzk1NDg0OTcxMzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacbe623bd28726837628a290006651e99f03680402dd60f69a33f5f54a50b72087
hovercard-subject-tagpull_request:687484622
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/27091/commits
twitter:imagehttps://opengraph.githubassets.com/5cc5c3b5442df54d0eb6f09060e5132ba0d804d7f73801bddb0d709ceba08c60/python/cpython/pull/27091
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5cc5c3b5442df54d0eb6f09060e5132ba0d804d7f73801bddb0d709ceba08c60/python/cpython/pull/27091
og:image:althttps://bugs.python.org/issue41972
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesweeneyde
hostnamegithub.com
expected-hostnamegithub.com
Noneacedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056
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
release83c08c21cdda978090dc44364b71aa5bc6dcea79
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/27091/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F27091%2Fcommits
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F27091%2Fcommits
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/27091/commits
Reloadhttps://github.com/python/cpython/pull/27091/commits
Reloadhttps://github.com/python/cpython/pull/27091/commits
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/27091/commits
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/27091/commits
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
ambvhttps://github.com/ambv
python:mainhttps://github.com/python/cpython/tree/main
sweeneyde:fastersearchhttps://github.com/sweeneyde/cpython/tree/fastersearch
Conversationhttps://github.com/python/cpython/pull/27091
Commits21 (21)https://github.com/python/cpython/pull/27091/commits
Checkshttps://github.com/python/cpython/pull/27091/checks
Files changedhttps://github.com/python/cpython/pull/27091/files
bpo-41972: Tweak fastsearch.h string search algorithmshttps://github.com/python/cpython/pull/27091/commits#top
ambvhttps://github.com/ambv
python:mainhttps://github.com/python/cpython/tree/main
sweeneyde:fastersearchhttps://github.com/sweeneyde/cpython/tree/fastersearch
Don't force inlininghttps://github.com/python/cpython/pull/27091/commits/90a6a0c0f969377eef22e2ac16d0a03d10cb6a5b
https://github.com/sweeneyde
sweeneydehttps://github.com/python/cpython/commits?author=sweeneyde
90a6a0chttps://github.com/python/cpython/pull/27091/commits/90a6a0c0f969377eef22e2ac16d0a03d10cb6a5b
https://github.com/python/cpython/tree/90a6a0c0f969377eef22e2ac16d0a03d10cb6a5b
Use a Boyer-Moore skip tablehttps://github.com/python/cpython/pull/27091/commits/19fa6616d843c2c44417f5fce80281f4bea2e91d
https://github.com/sweeneyde
sweeneydehttps://github.com/python/cpython/commits?author=sweeneyde
19fa661https://github.com/python/cpython/pull/27091/commits/19fa6616d843c2c44417f5fce80281f4bea2e91d
https://github.com/python/cpython/tree/19fa6616d843c2c44417f5fce80281f4bea2e91d
Switch to two-way in more caseshttps://github.com/python/cpython/pull/27091/commits/d2219d5131fbbeb981619ef484f977f1316b66f5
https://github.com/sweeneyde
sweeneydehttps://github.com/python/cpython/commits?author=sweeneyde
d2219d5https://github.com/python/cpython/pull/27091/commits/d2219d5131fbbeb981619ef484f977f1316b66f5
https://github.com/python/cpython/tree/d2219d5131fbbeb981619ef484f977f1316b66f5
Tighter commentshttps://github.com/python/cpython/pull/27091/commits/3b8760f8d1b07f94e2c6f0bad1d1587a5259c112
https://github.com/sweeneyde
sweeneydehttps://github.com/python/cpython/commits?author=sweeneyde
3b8760fhttps://github.com/python/cpython/pull/27091/commits/3b8760f8d1b07f94e2c6f0bad1d1587a5259c112
https://github.com/python/cpython/tree/3b8760f8d1b07f94e2c6f0bad1d1587a5259c112
Fix the direction of the cutoff inequality :)https://github.com/python/cpython/pull/27091/commits/5d86b8d418dcad97ee27c850339e55d0c8f20ccb
https://github.com/sweeneyde
sweeneydehttps://github.com/python/cpython/commits?author=sweeneyde
5d86b8dhttps://github.com/python/cpython/pull/27091/commits/5d86b8d418dcad97ee27c850339e55d0c8f20ccb
https://github.com/python/cpython/tree/5d86b8d418dcad97ee27c850339e55d0c8f20ccb
Separate a gap loophttps://github.com/python/cpython/pull/27091/commits/2e9a9b1520494c78104b8a42640567f3db9b5200
https://github.com/sweeneyde
sweeneydehttps://github.com/python/cpython/commits?author=sweeneyde
2e9a9b1https://github.com/python/cpython/pull/27091/commits/2e9a9b1520494c78104b8a42640567f3db9b5200
https://github.com/python/cpython/tree/2e9a9b1520494c78104b8a42640567f3db9b5200
update cutoffshttps://github.com/python/cpython/pull/27091/commits/c84314c44539f610fd4d16837f0c42ebeb1b03d5
https://github.com/sweeneyde
sweeneydehttps://github.com/python/cpython/commits?author=sweeneyde
c84314chttps://github.com/python/cpython/pull/27091/commits/c84314c44539f610fd4d16837f0c42ebeb1b03d5
https://github.com/python/cpython/tree/c84314c44539f610fd4d16837f0c42ebeb1b03d5
tweak cutoffs, fix i - cut + 1 jumphttps://github.com/python/cpython/pull/27091/commits/7517c6076dc595f5376a5a1e745aef77d5eb4d17
https://github.com/sweeneyde
sweeneydehttps://github.com/python/cpython/commits?author=sweeneyde
7517c60https://github.com/python/cpython/pull/27091/commits/7517c6076dc595f5376a5a1e745aef77d5eb4d17
https://github.com/python/cpython/tree/7517c6076dc595f5376a5a1e745aef77d5eb4d17
Refactor into smaller functionshttps://github.com/python/cpython/pull/27091/commits/e5ef33bd9642cf5baf5fd759c5720a2fabac2aa6
https://github.com/sweeneyde
sweeneydehttps://github.com/python/cpython/commits?author=sweeneyde
e5ef33bhttps://github.com/python/cpython/pull/27091/commits/e5ef33bd9642cf5baf5fd759c5720a2fabac2aa6
https://github.com/python/cpython/tree/e5ef33bd9642cf5baf5fd759c5720a2fabac2aa6
Focus the table on the last character of the pattern, giving a tighter inner loop.https://github.com/python/cpython/pull/27091/commits/a01fb70b5d69cd1da00f470fd64a7967f15dc143
https://github.com/sweeneyde
sweeneydehttps://github.com/python/cpython/commits?author=sweeneyde
a01fb70https://github.com/python/cpython/pull/27091/commits/a01fb70b5d69cd1da00f470fd64a7967f15dc143
https://github.com/python/cpython/tree/a01fb70b5d69cd1da00f470fd64a7967f15dc143
tweak cutoffshttps://github.com/python/cpython/pull/27091/commits/6be0c32379205935cb907182c33b6f651b2eaf76
https://github.com/sweeneyde
sweeneydehttps://github.com/python/cpython/commits?author=sweeneyde
6be0c32https://github.com/python/cpython/pull/27091/commits/6be0c32379205935cb907182c33b6f651b2eaf76
https://github.com/python/cpython/tree/6be0c32379205935cb907182c33b6f651b2eaf76
📜🤖 Added by blurb_it.https://github.com/python/cpython/pull/27091/commits/f9fe8073b449deca8b3c796d51c716d554ec84a3
https://github.com/apps/blurb-it
blurb-it[bot]https://github.com/python/cpython/commits?author=blurb-it%5Bbot%5D
f9fe807https://github.com/python/cpython/pull/27091/commits/f9fe8073b449deca8b3c796d51c716d554ec84a3
https://github.com/python/cpython/tree/f9fe8073b449deca8b3c796d51c716d554ec84a3
Fix sanitizer warningshttps://github.com/python/cpython/pull/27091/commits/25f9b5692c931bc4bf9c0b1cdc73456690efffc4
https://github.com/sweeneyde
sweeneydehttps://github.com/python/cpython/commits?author=sweeneyde
25f9b56https://github.com/python/cpython/pull/27091/commits/25f9b5692c931bc4bf9c0b1cdc73456690efffc4
https://github.com/python/cpython/tree/25f9b5692c931bc4bf9c0b1cdc73456690efffc4
Merge branch 'fastersearch' of https://github.com/sweeneyde/cpython into fastersearchhttps://github.com/python/cpython/pull/27091/commits/d3f843824f36d1b6b3e80a9a5335dd57b8ad905b
https://github.com/sweeneyde
sweeneydehttps://github.com/python/cpython/commits?author=sweeneyde
d3f8438https://github.com/python/cpython/pull/27091/commits/d3f843824f36d1b6b3e80a9a5335dd57b8ad905b
https://github.com/python/cpython/tree/d3f843824f36d1b6b3e80a9a5335dd57b8ad905b
Refactor for sanitizerhttps://github.com/python/cpython/pull/27091/commits/4379ea689c268d40e4b6ea83a025469b1a8d8866
https://github.com/sweeneyde
sweeneydehttps://github.com/python/cpython/commits?author=sweeneyde
4379ea6https://github.com/python/cpython/pull/27091/commits/4379ea689c268d40e4b6ea83a025469b1a8d8866
https://github.com/python/cpython/tree/4379ea689c268d40e4b6ea83a025469b1a8d8866
Don't goto declarationshttps://github.com/python/cpython/pull/27091/commits/e336b7909bc27c25fca6678bc71ae92a57904bd0
https://github.com/sweeneyde
sweeneydehttps://github.com/python/cpython/commits?author=sweeneyde
e336b79https://github.com/python/cpython/pull/27091/commits/e336b7909bc27c25fca6678bc71ae92a57904bd0
https://github.com/python/cpython/tree/e336b7909bc27c25fca6678bc71ae92a57904bd0
Emphasize to the compiler that the loop is a loophttps://github.com/python/cpython/pull/27091/commits/b8df3e13585b6a65c828c188ba33457390a60dd0
https://github.com/sweeneyde
sweeneydehttps://github.com/python/cpython/commits?author=sweeneyde
b8df3e1https://github.com/python/cpython/pull/27091/commits/b8df3e13585b6a65c828c188ba33457390a60dd0
https://github.com/python/cpython/tree/b8df3e13585b6a65c828c188ba33457390a60dd0
Use Py_LOCAL_INLINEhttps://github.com/python/cpython/pull/27091/commits/869f7d0079b3845e7d01b15b839c000354f0b899
https://github.com/sweeneyde
sweeneydehttps://github.com/python/cpython/commits?author=sweeneyde
869f7d0https://github.com/python/cpython/pull/27091/commits/869f7d0079b3845e7d01b15b839c000354f0b899
https://github.com/python/cpython/tree/869f7d0079b3845e7d01b15b839c000354f0b899
Use Py_LOCAL_INLINE againhttps://github.com/python/cpython/pull/27091/commits/747a39a2d1b0558f958137a917a7dbe0a5a5ed1e
https://github.com/sweeneyde
sweeneydehttps://github.com/python/cpython/commits?author=sweeneyde
747a39ahttps://github.com/python/cpython/pull/27091/commits/747a39a2d1b0558f958137a917a7dbe0a5a5ed1e
https://github.com/python/cpython/tree/747a39a2d1b0558f958137a917a7dbe0a5a5ed1e
Tweak thresholds based on most recent comparison.https://github.com/python/cpython/pull/27091/commits/72143efaade208f684c1801daa00a9c502f82ceb
https://github.com/sweeneyde
sweeneydehttps://github.com/python/cpython/commits?author=sweeneyde
72143efhttps://github.com/python/cpython/pull/27091/commits/72143efaade208f684c1801daa00a9c502f82ceb
https://github.com/python/cpython/tree/72143efaade208f684c1801daa00a9c502f82ceb
Fix greater/less than sign.https://github.com/python/cpython/pull/27091/commits/4d7d1022477a9b2855932ac665c022cc3e814566
https://github.com/sweeneyde
sweeneydehttps://github.com/python/cpython/commits?author=sweeneyde
4d7d102https://github.com/python/cpython/pull/27091/commits/4d7d1022477a9b2855932ac665c022cc3e814566
https://github.com/python/cpython/tree/4d7d1022477a9b2855932ac665c022cc3e814566
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.