Performance Testing Resharper
I've made a few posts before about certain projects that Resharper seems to
hang for seconds when doing normal coding in the IDE. One project I
notice that does this has about 8000 lines of code and quite a few UI
controls. Have you done any performance testing on this type of code. Not
everyone is as sharp in coding as you guys are! ;)
While I'm working on this project, I may have to un-install or figure out
some way of disabling resharper.
Thanks,
Derek
Please sign in to leave a comment.
Derek,
there is currently a problem which we are working on that causes delays on
large
files during typing. Of course, we're going to fix it ASAP. Could you tell
us how long
the file where you experience these hang-ups?
"Derek" <dprice@doble.com> wrote in message
news:c2a9ak$dut$1@is.intellij.net...
to
Not
>
>
>
>
Wow - fast response - You guys rock!
The file that I'm struggling with now is 8097 lines. I have quite a few
regions to help minimize the actual size of the file. I don't know if that
makes any difference. Is there anything on my end that I can do to help
out? Unfortunately, I can't provide the source code...
"Dmitry Shaporenkov (JetBrains)" <dsha@jetbrains.com> wrote in message
news:c2a9gs$euk$1@is.intellij.net...
>
>
out
>
>
How soon do you anticipate a fix? I'm addicted to Resharper and can't stand
not using it!
"Dmitry Shaporenkov (JetBrains)" <dsha@jetbrains.com> wrote in message
news:c2a9gs$euk$1@is.intellij.net...
>
>
out
>
>
You mentioned that a project has 8000 lines of code, not a file... ;)
Seriously, I don't think that regions make any difference, because they
don't reduce the size of the file in bytes. The problem is that it's hard to
reproduce these delays reliably. May be you can tell in what places of the
code
you observe these delays? Are they reproducible always / anywhere in that
file?
There is also one thing that can affect typing performance. You can try to
temporarily
disable highlighting (Tools->Options->ReSharper->General) and look how this
affects
delays. Please tell us about results.
"Derek" <dprice@doble.com> wrote in message
news:c2a9nh$gkh$1@is.intellij.net...
>
that
>
on
tell
seems
>
>
On line 475, in a private method in a region with 11 other private methods,
I started typing "foreach", but made a spelling mistake. I used the
Backspace key to delete the misspelling and it took the IDE approximately
25 seconds to respond.
Disabling Syntax Highlighting took 29 seconds for the IDE to respond to
the OK click in the Tools dialog.
Redoing the same test above yields about 1 second to backspace and correct
the foreach spelling mistake after disabling Syntax Highlighting. Big
improvement.
I heading to lunch, but feel free to list any other tests you want me to
try.
Derek
"Dmitry Shaporenkov (JetBrains)" <dsha@jetbrains.com> wrote in message
news:c2aaem$lhi$1@is.intellij.net...
to
>
this
>
delays
I
UI
code.
figure
>
>
Derek, there is a secret shortcut to enable / disable highlighting faster -
use Ctrl+8.
"Derek" <dprice@doble.com> wrote in message
news:c2abka$tf4$1@is.intellij.net...
methods,
>
>
correct
>
>
hard
the
that
to
few
help
you
project
>
>
How long is the longest method in your file?
--
Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Derek" <dprice@doble.com> wrote in message
news:c2abka$tf4$1@is.intellij.net...
methods,
>
>
correct
>
>
hard
the
that
to
few
help
you
project
>
>
Is there an easy way of determining this? We have quite a few method
(unfortunately) in this class...
"Valentin Kipiatkov (JetBrains)" <valentin@intellij.com> wrote in message
news:c2acr4$65k$1@is.intellij.net...
>
>
approximately
to
they
try
if
message
Resharper
few
>
>
I don't know such way. But can you estimate this at least approximately?
--
Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Derek" <dprice@doble.com> wrote in message
news:c2ag54$rb5$1@is.intellij.net...
>
to
of
how
a
know
to
Could
of
>
>
Derek,
You can approximately find the maximum method in your file and then
measure its length by placing caret first at the first and then at the last
line of the method. VS.NET shows current caret line so the method length can
be easily evaluated.
--
Oleg Stepanov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Derek" <dprice@doble.com> wrote in message
news:c2ag54$rb5$1@is.intellij.net...
>
to
of
how
a
know
to
Could
of
>
>
It's actually the Windows generated method InitialComponent() at a whopping
4200 lines...
"Valentin Kipiatkov (JetBrains)" <valentin@intellij.com> wrote in message
news:c2acr4$65k$1@is.intellij.net...
>
>
approximately
to
they
try
if
message
Resharper
few
>
>
It may be caused by such a long method (but may be caused by other reasons
so we need to check this). I submitted the problem with very long method
into the tracker:
http://www.intellij.net/tracker/resharper/viewSCR?publicId=1095 You may
subscribe to watch this request and check if our fix will help in your case.
We plan to fix it soon.
--
Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Derek" <dprice@doble.com> wrote in message
news:c2agll$ue3$1@is.intellij.net...
whopping
>
to
of
how
a
know
to
Could
of
>
>
Thanks for all the help (and attention) - I've subscribed to it.
Outstanding support!
Derek
"Valentin Kipiatkov (JetBrains)" <valentin@intellij.com> wrote in message
news:c2ah2b$u3$1@is.intellij.net...
case.
>
>
message
respond
Big
me
message
it's
places
in
can
quite
causes
a
type
or
>
>