4

I've checked a number of articles about disabling graphics acceleration, turning off IntelliTrace, and using Sysinternals Process Monitor (ProcMon) and am at a loss as to how to find out what is causing my editor to be ridiculously slow. ProcMon shows devenv.exe:

performing a large number of "NotifyChangeDirectory" against "C:\", "C:\Users\my_user_name" (and also some with random files from my project), and

registry operations (RegQueryKey, RegSetInfoKey, RegQueryValue, RegCloseKey) against:

  • HKLM\SOFTWARE\Wow6432Node\Microsoft\Cryptography\Defaults*,
  • HKCU\Software\Microsoft\VisualStudio\11.0\General\AutoRecover*,
  • HKCU\Software\Microsoft\VisualStudio\11.0\FileMRUList,
  • HKCR\Drive\shellex\FolderExtensions, HKCU\Software\Classes

And it also performs file open and close operations (seemingly random) against files in the project.

This happens even with a single project and one instance of Visual Studio 2012 Professional open. Anyone have any ideas?

Edit: This is on an Intel i7 machine with 16GB of RAM and an SSD. Task Manager doesn't indicate a CPU utilization, memory, or disk issue. IntelliTrace is disabled. Graphics acceleration is disabled. Visual Studio 2012 Ultimate.

Edit: Went to a new machine and it happens there, too. Now, in Visual Studio 2013.

joelc
  • 2,687
  • 5
  • 40
  • 60
  • Not sure this is really a programming issue, perhaps one of the other exchange sites would be more suitable. Where are you saving your projects? – Matt Jul 19 '13 at 17:42
  • Hi Matt, I'm saving projects to a local folder on my SSD. I figured SO would be the most appropriate given that developers would be the primary audience. – joelc Jul 19 '13 at 17:45
  • Do you have the Object Browser/Class View window open while editing? These appear to be updated synchronously which makes them unusable... – Paul Michalik Jul 19 '13 at 17:45
  • I do not. The only things open are the editor window, solution explorer, properties, and output/error list. – joelc Jul 19 '13 at 17:47
  • I assume no other programs have any performance issues, and the ram and hard drive check out ok. When you say "slow" you mean the UI is slow to respond, or the editor itself has a noticeable delay between you sending a keystroke and it appearing in the window? Or are there other symptoms? – Matt Jul 19 '13 at 18:03
  • The editor completely freezes. I type and nothing happens - keystrokes seem to queue up, and then it releases after 10-15 seconds, and the keystrokes then "happen". Similar things happen when I try to copy/paste, or when I click-and-drag to try and select text. – joelc Jul 19 '13 at 18:43
  • This happens to me too, most of the time after I wake up my pc from energy saving. – Andre Jan 14 '14 at 08:55
  • Has any progress been made on this? I've been having a problem that has some similarities such as the `NotifyChangeDirectory` happening all the time on my home directory while reading my .sdf file. This occurs when I'm doing a symbol search (F12/Ctrl-F12). Note, I've checked timestamps and file size changes in my home directory. Nothing is actually changing. :( – Adrian Mar 04 '14 at 22:24
  • Nope, none. Seems to be intermittent and no idea why. – joelc Mar 07 '14 at 05:04

4 Answers4

2

It may be many other things, but in my case it was the Assembly Binding Log (Fusion logs) enabled that slow down VS.

See this answer relative to Fusion logs. VS need a restart after changes in Registry.

If it doesn't resolve your issue, I strongly suggest you to use Process Monitor to find the culprit activity. I had also a lot of AutoRecover related logs but it was not the real issue in my projects.

Community
  • 1
  • 1
Eric Boumendil
  • 2,318
  • 1
  • 27
  • 32
  • For whatever reason, the issue went away and came back. As you can see in the original post I had identified (via Process Monitor) that VS was hammering the registry. Still is, and I have no idea why. :-/ – joelc Mar 18 '15 at 17:01
1

Deleting the contents of "C:\Users\Username\AppData\Local\Temp", and restarting my computer sped things back up to normal for me. There were over 47,000 folders in my temp folder.

0

Does the problem go away after you disable auto-recover in visual stuido?

Tools->Options->Environment->AutoRecover

JDennis
  • 672
  • 6
  • 15
0

I've had very similar-sounding problems which occur immediately after I run a unit test using the Resharper Test Runner (see Resharper 8.1 Test Runner slowing down Visual Studio Text Editing).

I tried all the other options presented above (and below), to no avail. Disabling the R# test runner and restarting VS fixed it, though it's not the solution I need. Are you perhaps using Resharper too?

Community
  • 1
  • 1
wislon
  • 723
  • 5
  • 21