VS.DiffAllFiles icon indicating copy to clipboard operation
VS.DiffAllFiles copied to clipboard

Next diff against local git repo takes long time to load

Open duyang76 opened this issue 5 years ago • 4 comments

When I diff a set of files against local git repo, sometimes the next diff takes a long time to load. Within the same set of files, some diffs show up in a few seconds, others take 1-2 minutes.

I am using external tool (Beyond Compare). I tried to change the settings (1 or 2 files at a time), stage or commit the changes, but the problem still exist. Any hint on what could cause the issue?

duyang76 avatar May 13 '20 17:05 duyang76

Thanks for reporting this, and sorry for not responding sooner (it seems I missed the email notification). Does it happen with TFVC repos, or Git repos, or both? Also, is it very consistent? Like, you see the problem 50% of the time? Or you only notice it maybe 5% of the time?

I haven't noticed this myself. It may be related to Beyond Compare taking a while to load, but I can't say for sure. It could also be something like a virus scanner temporary blocking it. I'll keep an eye out for it, but any more info you could provide would be helpful.

deadlydog avatar Aug 20 '20 07:08 deadlydog

Sorry about the late reply. Hope you are doing well.

My setting: remote git repo (bitbucket) and local git repo (cloned from remote in VS), and VS is configured to use Beyond Compare. I have some staged changes and some unstaged.

I tried to diff "staged", but the diff took very long time to open. When it opened, I got the error "Unexpected Error Occurred: Attempted to divide by zero." in VS. Diff the files one by one (w/o using "Diff All Files") works fine.

Thanks for looking into it.

duyang76 avatar Sep 21 '20 20:09 duyang76

Is there any log I can check to get more hint on what could cause the issue?

duyang76 avatar Sep 29 '20 20:09 duyang76

Not that I know of. That would be a good enhancement to make though; see if we can log to somewhere in Visual Studio (like the Output window perhaps?) and add some logging into the code to help troubleshoot issues like this easier.

deadlydog avatar Oct 20 '20 17:10 deadlydog