| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:b30d7ed9-cfec-5394-4062-560df1fc6a3f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E448:EFB79:5F7BBA:80262E:6969B51A |
| html-safe-nonce | f69ad2e231ed2417aa05a35b3a1cf602da2f7197bafa7cb24aa3fdfb3c8c1428 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDQ4OkVGQjc5OjVGN0JCQTo4MDI2MkU6Njk2OUI1MUEiLCJ2aXNpdG9yX2lkIjoiNTM5Njk0NTUyNTI2MjYyODEyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d909f387abba85255d6a7049a0bda9aa3bcc63a90eb523af56d9f121628ed9a0 |
| hovercard-subject-tag | pull_request:687484622 |
| 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 | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/27091/files |
| twitter:image | https://avatars.githubusercontent.com/u/36520290?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/36520290?s=400&v=4 |
| og:image:alt | https://bugs.python.org/issue41972 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b23b8fcc855cd29bb04d6c94aafa62d336bf44eefa8229444eecc968cad03aee |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0672399d88424758731ec07fe24509e23bb17fb5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/27091/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F27091%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| 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 |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | 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/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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%2Ffiles |
|
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%2Ffiles&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/27091/files |
| Reload | https://github.com/python/cpython/pull/27091/files |
| Reload | https://github.com/python/cpython/pull/27091/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/27091/files |
|
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 page | https://github.com/python/cpython/pull/27091/files |
|
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 |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| ambv | https://github.com/ambv |
| python:main | https://github.com/python/cpython/tree/main |
| sweeneyde:fastersearch | https://github.com/sweeneyde/cpython/tree/fastersearch |
|
Conversation
16
| https://github.com/python/cpython/pull/27091 |
|
Commits
21
| https://github.com/python/cpython/pull/27091/commits |
|
Checks
0
| https://github.com/python/cpython/pull/27091/checks |
|
Files changed
| https://github.com/python/cpython/pull/27091/files |
| Please reload this page | https://github.com/python/cpython/pull/27091/files |
|
bpo-41972: Tweak fastsearch.h string search algorithms
| https://github.com/python/cpython/pull/27091/files#top |
|
Show all changes
21 commits
| https://github.com/python/cpython/pull/27091/files |
|
90a6a0c
Don't force inlining
sweeneyde Jul 6, 2021
| https://github.com/python/cpython/pull/27091/commits/90a6a0c0f969377eef22e2ac16d0a03d10cb6a5b |
|
19fa661
Use a Boyer-Moore skip table
sweeneyde Jul 7, 2021
| https://github.com/python/cpython/pull/27091/commits/19fa6616d843c2c44417f5fce80281f4bea2e91d |
|
d2219d5
Switch to two-way in more cases
sweeneyde Jul 8, 2021
| https://github.com/python/cpython/pull/27091/commits/d2219d5131fbbeb981619ef484f977f1316b66f5 |
|
3b8760f
Tighter comments
sweeneyde Jul 9, 2021
| https://github.com/python/cpython/pull/27091/commits/3b8760f8d1b07f94e2c6f0bad1d1587a5259c112 |
|
5d86b8d
Fix the direction of the cutoff inequality :)
sweeneyde Jul 10, 2021
| https://github.com/python/cpython/pull/27091/commits/5d86b8d418dcad97ee27c850339e55d0c8f20ccb |
|
2e9a9b1
Separate a gap loop
sweeneyde Jul 10, 2021
| https://github.com/python/cpython/pull/27091/commits/2e9a9b1520494c78104b8a42640567f3db9b5200 |
|
c84314c
update cutoffs
sweeneyde Jul 10, 2021
| https://github.com/python/cpython/pull/27091/commits/c84314c44539f610fd4d16837f0c42ebeb1b03d5 |
|
7517c60
tweak cutoffs, fix i - cut + 1 jump
sweeneyde Jul 10, 2021
| https://github.com/python/cpython/pull/27091/commits/7517c6076dc595f5376a5a1e745aef77d5eb4d17 |
|
e5ef33b
Refactor into smaller functions
sweeneyde Jul 11, 2021
| https://github.com/python/cpython/pull/27091/commits/e5ef33bd9642cf5baf5fd759c5720a2fabac2aa6 |
|
a01fb70
Focus the table on the last character of the pattern, giving a tighte…
sweeneyde Jul 11, 2021
| https://github.com/python/cpython/pull/27091/commits/a01fb70b5d69cd1da00f470fd64a7967f15dc143 |
|
6be0c32
tweak cutoffs
sweeneyde Jul 11, 2021
| https://github.com/python/cpython/pull/27091/commits/6be0c32379205935cb907182c33b6f651b2eaf76 |
|
f9fe807
📜🤖 Added by blurb_it.
blurb-it[bot] Jul 12, 2021
| https://github.com/python/cpython/pull/27091/commits/f9fe8073b449deca8b3c796d51c716d554ec84a3 |
|
25f9b56
Fix sanitizer warnings
sweeneyde Jul 12, 2021
| https://github.com/python/cpython/pull/27091/commits/25f9b5692c931bc4bf9c0b1cdc73456690efffc4 |
|
d3f8438
Merge branch 'fastersearch' of https://github.com/sweeneyde/cpython i…
sweeneyde Jul 12, 2021
| https://github.com/python/cpython/pull/27091/commits/d3f843824f36d1b6b3e80a9a5335dd57b8ad905b |
|
4379ea6
Refactor for sanitizer
sweeneyde Jul 12, 2021
| https://github.com/python/cpython/pull/27091/commits/4379ea689c268d40e4b6ea83a025469b1a8d8866 |
|
e336b79
Don't goto declarations
sweeneyde Jul 12, 2021
| https://github.com/python/cpython/pull/27091/commits/e336b7909bc27c25fca6678bc71ae92a57904bd0 |
|
b8df3e1
Emphasize to the compiler that the loop is a loop
sweeneyde Jul 13, 2021
| https://github.com/python/cpython/pull/27091/commits/b8df3e13585b6a65c828c188ba33457390a60dd0 |
|
869f7d0
Use Py_LOCAL_INLINE
sweeneyde Jul 15, 2021
| https://github.com/python/cpython/pull/27091/commits/869f7d0079b3845e7d01b15b839c000354f0b899 |
|
747a39a
Use Py_LOCAL_INLINE again
sweeneyde Jul 15, 2021
| https://github.com/python/cpython/pull/27091/commits/747a39a2d1b0558f958137a917a7dbe0a5a5ed1e |
|
72143ef
Tweak thresholds based on most recent comparison.
sweeneyde Jul 16, 2021
| https://github.com/python/cpython/pull/27091/commits/72143efaade208f684c1801daa00a9c502f82ceb |
|
4d7d102
Fix greater/less than sign.
sweeneyde Jul 16, 2021
| https://github.com/python/cpython/pull/27091/commits/4d7d1022477a9b2855932ac665c022cc3e814566 |
|
Clear filters
| https://github.com/python/cpython/pull/27091/files |
| Please reload this page | https://github.com/python/cpython/pull/27091/files |
| Please reload this page | https://github.com/python/cpython/pull/27091/files |
|
2021-07-12-04-06-57.bpo-41972.nDX5k_.rst
| https://github.com/python/cpython/pull/27091/files#diff-9bc039f9b1ac9d5653938379f8a8aa2edc07d002a47d8a2f88b86be3b20ae2db |
|
fastsearch.h
| https://github.com/python/cpython/pull/27091/files#diff-67ae1b84396bc0119774489a3e62be151a8e1b1317a63c540f976d57d3e0489d |
| Misc/NEWS.d/next/Core and Builtins/2021-07-12-04-06-57.bpo-41972.nDX5k_.rst | https://github.com/python/cpython/pull/27091/files#diff-9bc039f9b1ac9d5653938379f8a8aa2edc07d002a47d8a2f88b86be3b20ae2db |
|
View file
| https://github.com/sweeneyde/cpython/blob/4d7d1022477a9b2855932ac665c022cc3e814566/Misc/NEWS.d/next/Core%20and%20Builtins/2021-07-12-04-06-57.bpo-41972.nDX5k_.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/27091/{{ revealButtonHref }} |
| Please reload this page | https://github.com/python/cpython/pull/27091/files |
|
| 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 |