Hard to track ReSharper performance problem - any suggestions?

Hello everyone.

I have a weird performance issue with ReSharer 5.1.
Whenever I perform any "code-changing action" (creating methods, expanding templates like "propg" or "foreach", or even renaming locals), there is a noticable delay between initiating the action and getting any result. To the point of becoming unbearable. The most obvious and a very hurtful example is this: When I select a local variable and Refactor->Rename it, I can directly type the new name into the editor window and all instances of the name get updated "live". But between each character appearing on the screen almost a second passes. Instead of having a full variable name written within a second, it sometimes needs half a minute.

The problem only appears to happen on my machine, which is a Intel Core2 Quad CPU @ 2.4 GHz with 8GB of RAM, running a 64-bit Windows 7. I use Visual Studio 2010 Premium with ReSharper 5.1.300.12

I tried downgrading to a previous release of 5.1; changing IntelliSense options; deactivation solution-wide analysis; clearing the cache. While I only work with c# solutions, the problem appears in all of them; large projects as well as small ones. No file, however, is obscenely large; the usual couple hundred LoC.

So far noone in our team has been able to track down why it takes ages for any "automatic" action to complete, especially considering that my machine is the only one where the problem appears.

I hope that I could receive a few pointer what might be at fault for the performance issues; maybe there are "known issues" that I failed to locate anywhere, despite having searched web and forum. Thank you advance.

With best regards

9 comments

Hi,

Here is some useful tips to boost VS 2010 performance
http://blog.rajsoftware.com/post/2011/02/01/VS2010-and-ReSharper-performances.aspx
By the way, you could take a performance snapshot by our profiling tool
dotTrace and send it to us for investigation.
Thanks in advance!

--
--
Kirill Falk
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Hello :)

Thank you for your reply, the information is highly appreciated. I looked into the provided link and switched off unneeded options that still were activated, yet I am afraid the problem persists.

As I, unfortunately, just now became tangled up in heavy project work, I am afraid I cannot provide the profiling snapshot right now. I will keep this in mind and provide the snapshot as soon as I can.

With best regards

0

Hello again!

I apologize for not keeping my promise of "being back soon".

I profiled about a minute of VS usage as you suggested. The profiling capture file, though, is over 500 MB large. before I tax your system with a file this large, I'd like to ask: Is that a normal / expected file size? If not, what can I do to not dump "useless" data onto you?

I was following the instructions at http://confluence.jetbrains.net/display/ReSharper/ReSharper+Performance+Profiling+Instructions and thank you again for your help.

0

Hello Cornelius,

It's a pretty normal snapshot size, please upload it to ftp://ftp.intellij.net/.uploads/
and let me know the file name. Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hello again!

I apologize for not keeping my promise of "being back soon".

I profiled about a minute of VS usage as you suggested. The profiling
capture file, though, is over 500 MB large. before I tax your system
with a file this large, I'd like to ask: Is that a normal / expected
file size? If not, what can I do to not dump "useless" data onto you?

I was following the instructions at
http://confluence.jetbrains.net/display/ReSharper/ReSharper+Performanc
eProfilingInstructions and thank you again for your help.

---
Original message URL:
http://devnet.jetbrains.net/message/5299577#5299577



0

I uploaded the file as "2011-04-06 - Cornelius - VS2010 performance trace snapshot.dtp". Furthermore, I tried suspending ReSharper for a while to again make sure I do not bother you needlessly. And with disabled ReSharper VS works quick like a cheetah (at least in comparison).

I am sure, as it only affects my machine, I misconfigured something somewhere or have unintended interactions with other software. Nevertheless I thank you for the time and work put into this matter.

Best regards,
  Cornelius

0

Hello Cornelius,

Which version of ReSharper are you using right now? Could you please also
run Visual Studio (devenv.exe) with /ReSharper.LogFile "C:\log.txt" /ReSharper.LogLevel
Verbose command line parameters, perform the same actions that you did while
capturing the snapshot and attach the resulting log here? Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I uploaded the file as "2011-04-06 - Cornelius - VS2010 performance
trace snapshot.dtp". Furthermore, I tried suspending ReSharper for a
while to again make sure I do not bother you needlessly. And with
disabled ReSharper VS works quick like a cheetah (at least in
comparison).

I am sure, as it only affects my machine, I misconfigured something
somewhere or have unintended interactions with other software.
Nevertheless I thank you for the time and work put into this matter.

Best regards,
Cornelius
---
Original message URL:
http://devnet.jetbrains.net/message/5299600#5299600



0

Hello Andrey,

I use ReSharper Build 5.1.3000.12 running in Visual Sturio 10.0.30319.1

I executed devenv with the mentioned cmd arguments; but since I was "playing around" to demonstrate what produced the highest lag for me, I could not recreate the exact same things I did when creating the performance trace. But I tried to get as close to it as i could and took the liberty of uploading the log to the FTP upload dir where the performace trace log resides as well. The file name is: 2011-04-07 - Cornelius - VS1010 Resharper.log

With best regards,
  Cornelius

0

I have this exact same problem. It drives me up the wall :-/ It has only been this bad since I installed RS5.

0

Hello again :)

It has been a while and I would like to inquire whether there are any news regarding my Visual Studio's odd behaviour -- or if it is time to get the big guns and try reinstalling various softwares. Can you tell me any news?

Thank you in advance for the inconvenciences you have gone through in order to help me.

Best regards,
  Cornelius

0

Please sign in to leave a comment.