Cheap way of speeding up Visual Studio I/O

by Dmitri January 28, 2009 21:06

Visual Studio loves file I/O. It really, really does, and it cares very little about caching and the like. What this means is that, when you open a solution file, it always reads it from disk. Which means that the speed of operation when generating lots of files (e.g., via T4 transformations) is typically atrocious. The fact that file I/O in VS does not appear to be multithreaded is another hindrance. In short, it’s a mess.

So here’s a stupid solution that I’ve been using for ages with excellent results – make a RAM disk! By sacrificing a small amount of RAM (I give it 128Mb), you can move your whole solution into RAM, where I/O speeds are far greater – noticeably greater when working with Visual Studio.

To get a RAM disk working, I followed advice on this page to the letter, and got it all set up under Vista. Then, when I need to, I simply snapshot my Subversion projects onto the RAM drive and do my work. If the stuff I work on is sensitive, I can even erase the RAM drive after work – committing beforehand, of course.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Comments

Comments are closed

Powered by BlogEngine.NET 1.4.5.0

About the author

St. Petersburg ALT.NET Group

My name is Dmitri Nesteruk, I'm a .Net developer, process/project manager and user group leader.

I co-ordinate the activity of several professional organizations, including the St. Petersburg .Net User Group, the St. Petersburg Alt.Net User Group, and others. If you are a techie and want to give a talk on a .Net-related topic, I am your point of contact. Don't be shy!