René's URL Explorer Experiment


Title: git_revwalk_next is slow on first iteration since v0.25 · Issue #4428 · libgit2/libgit2 · GitHub

Open Graph Title: git_revwalk_next is slow on first iteration since v0.25 · Issue #4428 · libgit2/libgit2

X Title: git_revwalk_next is slow on first iteration since v0.25 · Issue #4428 · libgit2/libgit2

Description: git_revwalk_next is slow on its first iteration for versions 0.25, 0.26 and master when compared to v0.24. This is especially noticeable on large repositories. Reproduction steps Run the following program on the Linux kernel source tree ...

Open Graph Description: git_revwalk_next is slow on its first iteration for versions 0.25, 0.26 and master when compared to v0.24. This is especially noticeable on large repositories. Reproduction steps Run the following ...

X Description: git_revwalk_next is slow on its first iteration for versions 0.25, 0.26 and master when compared to v0.24. This is especially noticeable on large repositories. Reproduction steps Run the following ...

Opengraph URL: https://github.com/libgit2/libgit2/issues/4428

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"git_revwalk_next is slow on first iteration since v0.25","articleBody":"git_revwalk_next is slow on its first iteration for versions 0.25, 0.26 and master when compared to v0.24. This is especially noticeable on large repositories.\r\n\r\n### Reproduction steps\r\nRun the following program on the Linux kernel source tree (https://github.com/torvalds/linux):\r\n\r\n```c\r\n#include \u003cstdio.h\u003e\r\n#include \u003cgit2.h\u003e\r\n\r\nint main(int argc, char *argv[]) {\r\n        git_libgit2_init();\r\n\r\n        git_repository *repo;\r\n        if (git_repository_open(\u0026repo, \".git\")) {\r\n                fprintf(stderr, \"Failed to open repository\\n\");\r\n                return 1;\r\n        }\r\n\r\n        git_oid oid;\r\n        git_oid_fromstr(\u0026oid, \"a0651c7fa2c088a605f63792279859608ed7f2c8\");\r\n\r\n        git_revwalk *revwalk;\r\n        git_revwalk_new(\u0026revwalk, repo);\r\n        git_revwalk_sorting(revwalk, GIT_SORT_TIME);\r\n        git_revwalk_push(revwalk, \u0026oid);\r\n\r\n        if (!git_revwalk_next(\u0026oid, revwalk)) {\r\n                git_commit *commit;\r\n\r\n                if (git_commit_lookup(\u0026commit, repo, \u0026oid)) {\r\n                        fprintf(stderr, \"Failed to lookup commit\\n\");\r\n                        return 1;\r\n                }\r\n\r\n                printf(\"%s\\n\", git_commit_message(commit));\r\n                git_commit_free(commit);\r\n        }\r\n\r\n        git_revwalk_free(revwalk);\r\n        git_repository_free(repo);\r\n\r\n        return 0;\r\n}\r\n```\r\n\r\n### Expected behavior\r\nWhen using v0.24 this program runs in a couple of milliseconds:\r\n```\r\nrichard@DevNew:~/code/linux$ time ./revwalktest \u003e/dev/null\r\n\r\nreal\t0m0.006s\r\nuser\t0m0.000s\r\nsys\t0m0.006s\r\n```\r\n\r\n### Actual behavior\r\nWhen using v0.25, v0.26 or master this program has not completed after 1 minute:\r\n```\r\nrichard@DevNew:~/code/linux$ timeout 60s ./revwalktest\r\nrichard@DevNew:~/code/linux$ echo $?\r\n124\r\n```\r\n\r\n### Version of libgit2 (release number or SHA1)\r\nv0.25, v0.26 \u0026 master\r\n\r\n### Operating system(s) tested\r\n```\r\nLinux DevNew 4.13.0-17-generic #20-Ubuntu SMP Mon Nov 6 10:04:08 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux\r\n```","author":{"url":"https://github.com/rgburke","@type":"Person","name":"rgburke"},"datePublished":"2017-12-01T21:24:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":30},"url":"https://github.com/4428/libgit2/issues/4428"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c7681c1e-b3e3-b237-fc70-5c2ff2137020
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDEE2:1B5602:4CE3EA3:65086B2:6A5D8BB8
html-safe-noncebeadaf97ca5b1021bb7ad8ea558158a36a07a3a712dd0f6a14ff808ac95151ac
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERUUyOjFCNTYwMjo0Q0UzRUEzOjY1MDg2QjI6NkE1RDhCQjgiLCJ2aXNpdG9yX2lkIjoiMjYwNTIxMzgxMDc2MTIzOTQ4MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5349c57bf1b2f3a474b549ad72f7f9142df5ed29a8e10efa887aab20e991ddcc
hovercard-subject-tagissue:278600817
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/libgit2/libgit2/4428/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e937a9c6f739a50e48b2418923419ba4182f58fcbbf67f124afa82be85786668/libgit2/libgit2/issues/4428
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e937a9c6f739a50e48b2418923419ba4182f58fcbbf67f124afa82be85786668/libgit2/libgit2/issues/4428
og:image:altgit_revwalk_next is slow on its first iteration for versions 0.25, 0.26 and master when compared to v0.24. This is especially noticeable on large repositories. Reproduction steps Run the following ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamergburke
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-preview
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/issues/4428#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flibgit2%2Flibgit2%2Fissues%2F4428
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%2Fissues%2F4428
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=libgit2%2Flibgit2
Reloadhttps://github.com/libgit2/libgit2/issues/4428
Reloadhttps://github.com/libgit2/libgit2/issues/4428
Reloadhttps://github.com/libgit2/libgit2/issues/4428
Please reload this pagehttps://github.com/libgit2/libgit2/issues/4428
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 423 https://github.com/libgit2/libgit2/issues
Pull requests 108 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
git_revwalk_next is slow on first iteration since v0.25https://github.com/libgit2/libgit2/issues/4428#top
https://github.com/rgburke
rgburkehttps://github.com/rgburke
on Dec 1, 2017https://github.com/libgit2/libgit2/issues/4428#issue-278600817
https://github.com/torvalds/linuxhttps://github.com/torvalds/linux
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.