Lots of registry accesses - responsible for slowdown?

I have a VERY fast machine, Core2Duo 2.6 GHZ with 4GB RAM. Even on my machine, I frequently notice that the editor becomes very slow, it sometimes takes about .5 sec after a keystroke until a character displays. This is even true with the newest build, #913. It only happens after pronlonged work and vanishes after a while. The behaviour stops if I disable R# completely, however, it doesn't stop when I just disable Code Analysis.

I ran sysinternal's process monitor while typing in the Visual Studio Editor and filtered for "resharper" in the path. I noticed that Resharper keeps quering the Registry extremely often. Specifically it queries nodes beginning with "ReSharper_OccurenceBrowser" about 1000 times every second. The result is always "NAME_NOT_FOUND". I believe this behaviour might be responsible for a major slowdown, since querying the registry that often is certainly not very fast. Perhaps this is a possiblity to improve responsiveness?

Also see the attached screenshot of process monitor. Especially look at the "Time Of Day" column where you can see that the frequency of those registry queries are very high.



Attachment(s):
Clipboard01.jpg
2 comments
Comment actions Permalink

It seems that the high registry access is due to the security model, searching for multiple occurences


smiley

0
Comment actions Permalink

Hello,

ReSharper does not use Registry for storing its settings, but for a few things
that are needed mainly on startup.

Your logs account for Visual Studio's looking up its commands in the Registry,
which it does when we request a status update for a command (and in some
other cases also). Visual Studio supposes that a command might be implemented
by a COM object, so it looks up the object right under the HKCR branch before
reverting to its own list of known commands. I don't think this results in
any real slowdown, though. Try closing Find Results windows to avoid updating
their toolbar status. We'll see if we can shortcut VS' looking up the Registry,
and we'll probably make the toolbar updates less aggressive.


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0

Please sign in to leave a comment.