libgit2 / libgit2/libgit2sharp
Stashes.Add taking forever to complete
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 3.5k
- Forks
- 925
- PR merge metrics
- No merged PRs in 30d
Description
I have a local Git repository that is 1.5 Gigs in size.... 34 579 source files in it. It takes overs 2 minutes (135 551 ms) to complete a "stash add", for only 1 modified file in the repo.... which is not acceptable.
Git-scm does it in approximately 2 seconds.
Reproduction steps
Expected behavior
Actual behavior
Version of LibGit2Sharp (release number or SHA1)
I was using the Libgit2Sharp NuGet package version 0.26.1... I have tried 0.26.0.... same results. Then, I have tried with 0.25.4... it worked in less than 2 seconds. Something broke in version 0.26.x
Operating system(s) tested; .NET runtime tested
It is in a Visual Studio Profesionnal 2017 C# project, under Windows 10 64 bits. Framework 4.6.1.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported stash-add timing with the 0.26.x and 0.25.4 LibGit2Sharp packages on the described large repository, then compare the behavior with Git. Identify the 0.26.x regression and verify that stash add completes in approximately the earlier or Git-like timeframe.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, git
- Domain
- performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100