Friday, November 14, 2008

Slow Load for Visual Studio

This week my Visual Studio started loading my solutions very slowly. It would take 10 minutes or more just to get everything up and ready. I suspected something network related since there was no real CPU or disk usage occurring.

After some digging, I found this interesting tidbit.

From: Never doubt thy debugger

It was handy finding out where the recent file list was. Mine didn't have network shares, but it did have some projects that had been moved to other directories. I deleted all the entries.

BTW, Visual Studio has to be shut down before the list is cleared. If not, it gets recreated with the in-memory copy when Visual Studio exits.

This helped some projects but not all. I still had one solution that was slow. After a bit, I noticed that a file on a network share was being checked for searches. While working I had dragged a file from a network share into my Visual Studio and didn't close it (I tend to keep a lot of files open at once). Once I closed all my files, things got better.

No comments: