English 中文(简体)
How to speed up Visual Studio 2008? Add more resources?
原标题:

I m using Visual Studio 2008 (with the latest service pack) I also have ReSharper 4.5 installed. ReSharper Code analysis/ scan is turned off. OS: Windows 7 Enterprise Edition

It takes me a long time (2 minutes) to run the debugger, compiler, and if I save a file in my app_code folder it locks up for 2 minutes.

I have 12 Gb of ram and as you can see I have plenty more. This screen shot was taken when VS was frozen/locked up.

Can I allocate more ram to VS? Or is there any other tweaks I can do?

slow

问题回答

Looks like either a slow hard disk or a slow network to me. Any of the relevant files stored on the network?

Try removing ReSharper and see what happens. Is there an active virusscanner? What happens when you disable it for a moment?

Oh, and can you move your classes from app_code to an external library? I am not sure, but I think a change in app_code can result into a complete recompile.

Probably hard drive speed. This blog post from scottgu is a little old but it is still relevant: http://weblogs.asp.net/scottgu/archive/2007/11/01/tip-trick-hard-drive-speed-and-visual-studio-performance.aspx

This may not address everything, but memory constraint issues are pretty common with ReSharper. Yet, I am addicted to it, and the speed improvements of removing it didn t outweigh the withdrawl pain...

By default, Visual Studio will only address 2GB of memory. However, you can make it large memory aware (so it will use up to 3GB) by following these steps (from this Steven Harman post):

  1. Be sure to backup devenv.exe
  2. Using the Visual Studio command prompt, navigate to C:Program Files (x86)Microsoft Visual Studio 9.0Common7IDE
  3. execute the following command: editbin /LARGEADDRESSAWARE devenv.exe

Also, see this post, which has some other great tips for overall Visual Studio performance. Every little bit helps.

Try that, and get yourself a faster (10,000 RPM) hard drive. Plenty of posts (here on SO, on Coding Horror, and elsewhere) attest to the performance gains of moving from a standard 5,400 RPM to a faster model.

Try running Process Monitor and use Tools/Process Activity Summary to show if any of the processes on your system are causing a large amount of file accesses, registry accesses or network activity. If you filter the log for the name of the file you re trying to save to then it may also show some API errors or permissions problems that are causing the slowdown.

A faster hard drive maybe your solution. Jeff Atwood has a blog entry about using a 10,000 rpm hard drive in a computer.

Another question here on Stackoverflow talks about Visual Studio slow downs due to virus scanners running.

I myself have run into large solutions taking a long time, CodeRush Express causing thing to run slow, background processes running that cause slow downs.

Good luck in your hunt. It would be interesting to know what you find.

Have you made sure that you re using the latest version of ReSharper (4.5.2)? There were a fwe good performance gains made in the last update. Myself, I ve got a 28-project web solution with 1,400 source files, a 5400 RPM drive (yeah, I know), and my startup time for debugging the project is less that 30 seconds.





相关问题
What to look for in performance analyzer in VS 2008

What to look for in performance analyzer in VS 2008 I am using VS Team system and got the performance wizard and reports going. What benchmarks/process do I use? There is a lot of stuff in the ...

SQL Table Size And Query Performance

We have a number of items coming in from a web service; each item containing an unknown number of properties. We are storing them in a database with the following Schema. Items - ItemID - ...

How to speed up Visual Studio 2008? Add more resources?

I m using Visual Studio 2008 (with the latest service pack) I also have ReSharper 4.5 installed. ReSharper Code analysis/ scan is turned off. OS: Windows 7 Enterprise Edition It takes me a long time ...

Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

热门标签