René's URL Explorer Experiment


Title: Optimize string comparisons by romkatv · Pull Request #5018 · libgit2/libgit2 · GitHub

Open Graph Title: Optimize string comparisons by romkatv · Pull Request #5018 · libgit2/libgit2

X Title: Optimize string comparisons by romkatv · Pull Request #5018 · libgit2/libgit2

Description: A cross-platform, linkable library implementation of Git that you can use in your application. - Optimize string comparisons by romkatv · Pull Request #5018 · libgit2/libgit2

Open Graph Description: See #4230 (comment) for context. This is diff optimization PR 1/3. The smallest of the three both in terms of code delta and impact. Three hand-rolled string comparison functions -- git__prefixcmp,...

X Description: See #4230 (comment) for context. This is diff optimization PR 1/3. The smallest of the three both in terms of code delta and impact. Three hand-rolled string comparison functions -- git__prefixcmp,...

Opengraph URL: https://github.com/libgit2/libgit2/pull/5018

X: @github

direct link

Domain: github.com

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:c636b1e4-d61d-a6b1-da45-5e9446e08a09
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC344:337C5B:3F058E:546A6F:6A5CC268
html-safe-nonce1bdc6adac003697080c5bde22c010bdeea6eed9f35c952182092f4f74ecdb39b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzQ0OjMzN0M1QjozRjA1OEU6NTQ2QTZGOjZBNUNDMjY4IiwidmlzaXRvcl9pZCI6IjUxMzg0MTU1MDk0MDM2NDg2MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac63e9d001827f38370333b1d9dd09b67a157a679f2325c67ecfa25636965b432b
hovercard-subject-tagpull_request:261186584
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/libgit2/libgit2/5018/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/6171c07316c2419c64d6903928156a4ef60fde27a0de84dbf4a05d9ba5c4f98a/libgit2/libgit2/pull/5018
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6171c07316c2419c64d6903928156a4ef60fde27a0de84dbf4a05d9ba5c4f98a/libgit2/libgit2/pull/5018
og:image:altSee #4230 (comment) for context. This is diff optimization PR 1/3. The smallest of the three both in terms of code delta and impact. Three hand-rolled string comparison functions -- git__prefixcmp,...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameromkatv
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-cache
go-importgithub.com/libgit2/libgit2 git https://github.com/libgit2/libgit2.git
octolytics-dimension-user_id394745
octolytics-dimension-user_loginlibgit2
octolytics-dimension-repository_id901662
octolytics-dimension-repository_nwolibgit2/libgit2
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id901662
octolytics-dimension-repository_network_root_nwolibgit2/libgit2
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
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/libgit2/libgit2/pull/5018#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flibgit2%2Flibgit2%2Fpull%2F5018
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2Flibgit2%2Flibgit2%2Fpull%2F5018
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=libgit2%2Flibgit2
Reloadhttps://github.com/libgit2/libgit2/pull/5018
Reloadhttps://github.com/libgit2/libgit2/pull/5018
Reloadhttps://github.com/libgit2/libgit2/pull/5018
Please reload this pagehttps://github.com/libgit2/libgit2/pull/5018
libgit2 https://github.com/libgit2
libgit2https://github.com/libgit2/libgit2
Notifications https://github.com/login?return_to=%2Flibgit2%2Flibgit2
Fork 2.6k https://github.com/login?return_to=%2Flibgit2%2Flibgit2
Star 10.5k https://github.com/login?return_to=%2Flibgit2%2Flibgit2
Code https://github.com/libgit2/libgit2
Issues 421 https://github.com/libgit2/libgit2/issues
Pull requests 107 https://github.com/libgit2/libgit2/pulls
Discussions https://github.com/libgit2/libgit2/discussions
Actions https://github.com/libgit2/libgit2/actions
Projects https://github.com/libgit2/libgit2/projects
Security and quality 9 https://github.com/libgit2/libgit2/security
Insights https://github.com/libgit2/libgit2/pulse
Code https://github.com/libgit2/libgit2
Issues https://github.com/libgit2/libgit2/issues
Pull requests https://github.com/libgit2/libgit2/pulls
Discussions https://github.com/libgit2/libgit2/discussions
Actions https://github.com/libgit2/libgit2/actions
Projects https://github.com/libgit2/libgit2/projects
Security and quality https://github.com/libgit2/libgit2/security
Insights https://github.com/libgit2/libgit2/pulse
ethomsonhttps://github.com/ethomson
libgit2:masterhttps://github.com/libgit2/libgit2/tree/master
romkatv:stringshttps://github.com/romkatv/libgit2/tree/strings
Conversationhttps://github.com/libgit2/libgit2/pull/5018
Commits1 (1)https://github.com/libgit2/libgit2/pull/5018/commits
Checkshttps://github.com/libgit2/libgit2/pull/5018/checks
Files changedhttps://github.com/libgit2/libgit2/pull/5018/files
Optimize string comparisonshttps://github.com/libgit2/libgit2/pull/5018#top
ethomsonhttps://github.com/ethomson
libgit2:masterhttps://github.com/libgit2/libgit2/tree/master
romkatv:stringshttps://github.com/romkatv/libgit2/tree/strings
https://github.com/romkatv
romkatvhttps://github.com/romkatv
Mar 14, 2019https://github.com/libgit2/libgit2/pull/5018#issue-421043195
#4230 (comment)https://github.com/libgit2/libgit2/issues/4230#issuecomment-471710359
Please reload this pagehttps://github.com/libgit2/libgit2/pull/5018
https://github.com/romkatv
romkatvhttps://github.com/romkatv
Mar 14, 2019 https://github.com/libgit2/libgit2/pull/5018#ref-issue-225688146
git_status_list is slower than git status #4230 https://github.com/libgit2/libgit2/issues/4230
https://github.com/pks-t
pks-thttps://github.com/pks-t
Mar 15, 2019 https://github.com/libgit2/libgit2/pull/5018#pullrequestreview-214977188
View reviewed changes https://github.com/libgit2/libgit2/pull/5018/files
src/util.hhttps://github.com/libgit2/libgit2/pull/5018/files#diff-40ab92941994ec9418dbb76ae46d5aef0e4cb8b034f2be2b31562bb9aca8070f
pks-thttps://github.com/pks-t
Mar 15, 2019https://github.com/libgit2/libgit2/pull/5018#discussion_r265937624
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/libgit2/libgit2/pull/5018
neithernuthttps://github.com/neithernut
Mar 15, 2019https://github.com/libgit2/libgit2/pull/5018#discussion_r265947829
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@ethomsonhttps://github.com/ethomson
#4230 (comment)https://github.com/libgit2/libgit2/issues/4230#issuecomment-471724613
Please reload this pagehttps://github.com/libgit2/libgit2/pull/5018
ethomsonhttps://github.com/ethomson
Mar 15, 2019https://github.com/libgit2/libgit2/pull/5018#discussion_r265970586
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/libgit2/libgit2/pull/5018
romkatvhttps://github.com/romkatv
Mar 18, 2019https://github.com/libgit2/libgit2/pull/5018#discussion_r266547700
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@ethomsonhttps://github.com/ethomson
Please reload this pagehttps://github.com/libgit2/libgit2/pull/5018
pks-thttps://github.com/pks-t
Mar 19, 2019https://github.com/libgit2/libgit2/pull/5018#discussion_r266852283
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@ethomsonhttps://github.com/ethomson
Please reload this pagehttps://github.com/libgit2/libgit2/pull/5018
romkatvhttps://github.com/romkatv
Mar 21, 2019https://github.com/libgit2/libgit2/pull/5018#discussion_r267657999
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/libgit2/libgit2/pull/5018
pks-thttps://github.com/pks-t
Mar 29, 2019https://github.com/libgit2/libgit2/pull/5018#discussion_r270381272
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/libgit2/libgit2/pull/5018
romkatvhttps://github.com/romkatv
Mar 29, 2019https://github.com/libgit2/libgit2/pull/5018#discussion_r270390201
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/libgit2/libgit2/pull/5018
pks-thttps://github.com/pks-t
Mar 29, 2019https://github.com/libgit2/libgit2/pull/5018#discussion_r270403776
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@ethomsonhttps://github.com/ethomson
Please reload this pagehttps://github.com/libgit2/libgit2/pull/5018
ethomsonhttps://github.com/ethomson
Apr 4, 2019https://github.com/libgit2/libgit2/pull/5018#discussion_r272297138
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/libgit2/libgit2/pull/5018
https://github.com/romkatv
romkatvhttps://github.com/romkatv
Mar 19, 2019https://github.com/libgit2/libgit2/pull/5018#issuecomment-474408815
Please reload this pagehttps://github.com/libgit2/libgit2/pull/5018
Please reload this pagehttps://github.com/libgit2/libgit2/pull/5018
https://github.com/romkatv
romkatvhttps://github.com/romkatv
force-pushedhttps://github.com/libgit2/libgit2/compare/792d0d224b48196b4387774d4dbe9711b0499218..5ec4dd7cc925c60d655b0bd7b9b91c0656786ada
792d0d2https://github.com/libgit2/libgit2/commit/792d0d224b48196b4387774d4dbe9711b0499218
5ec4dd7https://github.com/libgit2/libgit2/commit/5ec4dd7cc925c60d655b0bd7b9b91c0656786ada
Compare https://github.com/libgit2/libgit2/compare/792d0d224b48196b4387774d4dbe9711b0499218..5ec4dd7cc925c60d655b0bd7b9b91c0656786ada
March 29, 2019 12:33https://github.com/libgit2/libgit2/pull/5018#event-2239102440
https://github.com/romkatv
optimize string comparisonshttps://github.com/libgit2/libgit2/pull/5018/commits/30a56ba644e0f0d34c71658c9a53328a1ccc3538
30a56bahttps://github.com/libgit2/libgit2/pull/5018/commits/30a56ba644e0f0d34c71658c9a53328a1ccc3538
https://github.com/romkatv
romkatvhttps://github.com/romkatv
force-pushedhttps://github.com/libgit2/libgit2/compare/5ec4dd7cc925c60d655b0bd7b9b91c0656786ada..30a56ba644e0f0d34c71658c9a53328a1ccc3538
5ec4dd7https://github.com/libgit2/libgit2/commit/5ec4dd7cc925c60d655b0bd7b9b91c0656786ada
30a56bahttps://github.com/libgit2/libgit2/commit/30a56ba644e0f0d34c71658c9a53328a1ccc3538
Compare https://github.com/libgit2/libgit2/compare/5ec4dd7cc925c60d655b0bd7b9b91c0656786ada..30a56ba644e0f0d34c71658c9a53328a1ccc3538
March 29, 2019 12:35https://github.com/libgit2/libgit2/pull/5018#event-2239105996
https://github.com/romkatv
romkatvhttps://github.com/romkatv
Apr 4, 2019 https://github.com/libgit2/libgit2/pull/5018#ref-issue-429211942
Potential performance improvements #5038 https://github.com/libgit2/libgit2/issues/5038
https://github.com/ethomson
ethomsonhttps://github.com/ethomson
Apr 4, 2019https://github.com/libgit2/libgit2/pull/5018#issuecomment-479999921
@romkatvhttps://github.com/romkatv
Please reload this pagehttps://github.com/libgit2/libgit2/pull/5018
https://github.com/ethomson
ethomsonhttps://github.com/ethomson
18e836chttps://github.com/libgit2/libgit2/commit/18e836cbf3f01d1aaa839315efb2c0cf0e6b2204
Apr 4, 2019https://github.com/libgit2/libgit2/pull/5018#event-2253728426
https://github.com/snyk-bot
snyk-bothttps://github.com/snyk-bot
Feb 23, 2020 https://github.com/libgit2/libgit2/pull/5018#ref-pullrequest-569442418
[Snyk] Upgrade nodegit from 0.4.1 to 0.26.4 saurabharch/Breezeblocks#1 https://github.com/saurabharch/Breezeblocks/pull/1
https://github.com/snyk-bot
snyk-bothttps://github.com/snyk-bot
Apr 22, 2020 https://github.com/libgit2/libgit2/pull/5018#ref-pullrequest-604472000
[Snyk] Upgrade nodegit from 0.24.3 to 0.26.5 aminatakonate000/Graviton-App#4 https://github.com/aminatakonate000/Graviton-App/pull/4
https://github.com/snyk-bot
snyk-bothttps://github.com/snyk-bot
May 5, 2020 https://github.com/libgit2/libgit2/pull/5018#ref-pullrequest-612362441
[Snyk] Upgrade nodegit from 0.24.3 to 0.26.5 Barnstorm-Online/ngp-openapi-generator#1 https://github.com/Barnstorm-Online/ngp-openapi-generator/pull/1
https://github.co/hiddenchars
https://github.com/libgit2/libgit2/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%2Flibgit2%2Flibgit2%2Fpull%2F5018
https://github.com/ethomson
ethomson https://github.com/ethomson
https://github.com/libgit2/libgit2/pull/5018/files/30a56ba644e0f0d34c71658c9a53328a1ccc3538
https://github.com/pks-t
pks-t https://github.com/pks-t
https://github.com/libgit2/libgit2/pull/5018/files/30a56ba644e0f0d34c71658c9a53328a1ccc3538
https://github.com/neithernut
neithernut https://github.com/neithernut
https://github.com/libgit2/libgit2/pull/5018/files/92ac67013d82c33c23dc267e6d0705108f5097f3
Please reload this pagehttps://github.com/libgit2/libgit2/pull/5018
https://github.com/romkatv
https://github.com/ethomson
https://github.com/pks-t
https://github.com/neithernut
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.