Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS 2010 very slow

I have just upgraded to VS 2010, and I have performance problems which I did not have before (in VS 2008).

The most annoying thing is that it freezes while I work in the text editor. Sometimes when it freezes I see that it is saving auto recovery information, but not always.

Almost anything I do gives an unacceptable long delay, like saving, starting to debug, ending debug session, switching between design and code view, and doing WinForms designing.

I have some parts of my home directory on a mapped network drive. I suspect that that might be a part of the problem. Is it possible to configure VS 2010 to use exclusively local disk for its "internal" work perhaps?

Any hints would be appreciated! Has anyone else experienced these kinds of problems?

Edit: I forgot to give my specs:

  • Win 7 64-bit
  • 4 gb memory
  • No addins, just standard installation
  • The project folder is on the network drive

One interesting thing is that I feel that I have better performance in a VM running XP (where the VM runs on the same PC).

like image 720
kaze Avatar asked May 21 '10 06:05

kaze


People also ask

Why does my Visual Studio run so slow?

You might have extensions installed that slow Visual Studio down. For help on managing extensions to improve performance, see Change extension settings to improve performance. Similarly, you might have tool windows that slow Visual Studio down.

Is Visual Studio 2010 obsolete?

Microsoft Visual Studio 2010 has reached product End of Life in its support cycle on 14/07/2020. No further bug fixes, enhancements, security updates or technical support is available for this version.

How do you speed up VS code?

Windows: Ctrl + Shift + P. MacOS: Command + Shift + P.


2 Answers

VS is great if you do what microsoft recommends and work on a local copy of your projects. As soon as you start tying to open projects in remote locations you will get this issue.

Recommendations:

  1. use a source control solution.
  2. create a copy of your project locally and run the solution from that.

Also ...

I think it does it's clever stuff in the background, I found the more i use it the faster it gets, especially on long running projects that I regularly go back to.

If you think it might be aformentioned WPF framework you may want to try switching off aero (as a test) if it helps the problem is likely that your chosen graphics hardware is not very good at effect or 3D based output so it's struggling.

Also try reducing the number of background services and apps you have running.

on windows 7 these days 4 gigs of ram is considered standard, so whilst it should perform fine maybe consider putting more ram in if you are trying to handle large datasets / similar business applications.

Another thing you could try is run a repair install over the top of your existing, it may not have cleanly installed something ... unlikely but it may help.

like image 136
War Avatar answered Sep 21 '22 09:09

War


If you can, buy an SSD disk and move all your projects locally. I find VS2010 super intensive on disk. It fly on my home machine with an SSD but it's almost unusable on my work machine(Win7 4 gig RAM, but standard disk)

like image 21
smnbss Avatar answered Sep 20 '22 09:09

smnbss