Title: git_index_add_all() and git_index_update_all() are about 25X slower than git CLT · Issue #2687 · libgit2/libgit2 · GitHub
Open Graph Title: git_index_add_all() and git_index_update_all() are about 25X slower than git CLT · Issue #2687 · libgit2/libgit2
X Title: git_index_add_all() and git_index_update_all() are about 25X slower than git CLT · Issue #2687 · libgit2/libgit2
Description: I have a test repo with 800+ files. Running git_index_add_all() or git_index_update_all() with only 1 file modified takes 0.5s on my MacBook Pro with SSD. Doing the same with git -A takes 0.02s. Looking at the implementation it appears t...
Open Graph Description: I have a test repo with 800+ files. Running git_index_add_all() or git_index_update_all() with only 1 file modified takes 0.5s on my MacBook Pro with SSD. Doing the same with git -A takes 0.02s. Lo...
X Description: I have a test repo with 800+ files. Running git_index_add_all() or git_index_update_all() with only 1 file modified takes 0.5s on my MacBook Pro with SSD. Doing the same with git -A takes 0.02s. Lo...
Opengraph URL: https://github.com/libgit2/libgit2/issues/2687
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"git_index_add_all() and git_index_update_all() are about 25X slower than git CLT","articleBody":"I have a test repo with 800+ files. Running `git_index_add_all()` or `git_index_update_all()` with only 1 file modified takes 0.5s on my MacBook Pro with SSD. Doing the same with `git -A` takes 0.02s.\n\nLooking at the implementation it appears that both functions re-import all the files as blobs into the database, ignoring which files have actually changed.\n","author":{"url":"https://github.com/swisspol","@type":"Person","name":"swisspol"},"datePublished":"2014-11-04T15:46:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/2687/libgit2/issues/2687"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c4acc6dc-64b2-8769-0f58-34b1401b6c87 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E060:32AC14:5779463:727A249:6A5D9EAE |
| html-safe-nonce | c6b7a9fc4251f1afd9e7df3a03d99d1f835756a40bd4693357ee0f2705bafc16 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDYwOjMyQUMxNDo1Nzc5NDYzOjcyN0EyNDk6NkE1RDlFQUUiLCJ2aXNpdG9yX2lkIjoiNDA3NjA4ODUyMzA2NTQ5OTMxMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b3694082a12d84a369522606abf61fcd25dd8305ff996ae2109f3b9045dfd329 |
| hovercard-subject-tag | issue:47727566 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/libgit2/libgit2/2687/issue_layout |
| twitter:image | https://opengraph.githubassets.com/08bb31f3b84d5ed477bac9fff3e03089cac622abf7b18bba228f193aaade83cb/libgit2/libgit2/issues/2687 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/08bb31f3b84d5ed477bac9fff3e03089cac622abf7b18bba228f193aaade83cb/libgit2/libgit2/issues/2687 |
| og:image:alt | I have a test repo with 800+ files. Running git_index_add_all() or git_index_update_all() with only 1 file modified takes 0.5s on my MacBook Pro with SSD. Doing the same with git -A takes 0.02s. Lo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | swisspol |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/libgit2/libgit2 git https://github.com/libgit2/libgit2.git |
| octolytics-dimension-user_id | 394745 |
| octolytics-dimension-user_login | libgit2 |
| octolytics-dimension-repository_id | 901662 |
| octolytics-dimension-repository_nwo | libgit2/libgit2 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 901662 |
| octolytics-dimension-repository_network_root_nwo | libgit2/libgit2 |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width