r/programming • • Apr 19 '21

Visual Studio 2022

https://devblogs.microsoft.com/visualstudio/visual-studio-2022/
1.9k Upvotes

475 comments sorted by

View all comments

Show parent comments

11

u/andreasOM Apr 19 '21

Opening our current project with git-disabled (via some registry hacks) takes about 7 minutes.
Opening it with git-enabled takes over 2h, and the fans go full tilt for the whole duration.
About 2 out of 5 times it crashes before getting into the project.

All this is well known, and documented;
And has been ignored by the development team for years.

7

u/salbris Apr 19 '21

How big is your git repository?

2

u/andreasOM Apr 20 '21

147GB. Loading from an onboard NVME on a system with 256GB RAM.
The previous project was ~800GB, and took over 30h to open up.

(And please don't ask. Gigantic mono-repo project that has more legacy in it than all our ages multiplied...)

1

u/salbris Apr 21 '21

Ah so quite the non-typical repo.

1

u/andreasOM Apr 23 '21

I just created a simple "Hello World".
Opening time with git-plugin enabled ~1m35s.
Opening time with git-plugin disabled ~15s.

(Each averaged over 10 tries.)

Paying any overhead for a feature that is not used/needed, and can not be disabled
is just bad software design, or lazy programming, or both.

Why having the plugin enabled (aka not hacked out) is creating such a massive overhead
is a riddle in itself. Even if it did full checksums for the full history of each file
that shouldn't add up to more than 5-10% overhead - if very badly implemented.

(Yes, I am fully aware that the old "windows process creation spins on the main ui-lock" problem,
but if that hits you ... just use a pool like everybody else.)

1

u/shrodes Apr 20 '21

What are the registry hacks? Might be useful as I don’t use Git features inside VS

2

u/andreasOM Apr 20 '21

We have a local script that mentions https://developercommunity.visualstudio.com/solutions/587860/view.html as the source, but it looks like MS didn't like that, and deleted the info.
Our script is internal, and does a lot of other things. Will try to extract the essence, and post it later.

1

u/shrodes Apr 28 '21

I found this https://gist.github.com/hmemcpy/5bc6b5cc11050b502ca3

But seems a bit out of date for VS 2019