libgit2 / libgit2/libgit2sharp

Stashes.Add taking forever to complete

未關閉
#1,715 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
C#
星號
3.5k
分支
925
PR 合併指標
30 天內沒有已合併 PR

描述

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.

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

首先,在所描述的大型儲存庫中使用 LibGit2Sharp 0.26.x 和 0.25.4 套件重現回報的 stash-add 耗時,然後將其行為與 Git 進行比較。找出 0.26.x 中的回歸,並確認 stash add 是否能在大約與先前相同或類似 Git 的時間內完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
csharp, git
領域
performance
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。