Search code examples
visual-studiomemoryperformancepython-idle

Visual Studio 2008 crawling after long idle time


What's up people.

Something's been bothering me for a while now... and I was wondering if any of you might know of a workaround for this.

The C# solution im working on is a huge solution that contains about 20 projects and almost the same amount of unit test projects. Each projects contains hundreds of files. So opening and closing the solution takes a while... but once it's opened, everything is fine.

But, if I leave my computer up for the night (with my solution still opened in VS) and come back the next morning, everything I'll do in VS will be very slow for the next half hour or so.

I know why this happens... it's because Windows seems to remove idle processes from memory (RAM). And when I do something in VS, it takes the data from the pagefile and puts it back in the memory which slows everything single operations I do till the process' memory has been fully restored in RAM.

So my question is, is there a way to tell Windows that VS is a high priority process/application and to leave that process' memory in RAM?

Thanks in advance,

-Oli


Solution

  • I don't think this is possible. OTOH, you could put your computer in suspend-to-disk mode. That would pretty much freeze its state as it is when you leave (that is: VS in RAM) and restore it to the same when you start working. As an additional bonus, you would help to conserve energy and thus might save the earth.