Resharper slow in highlihting large C# source files
Resharper is pretty slow in highlihting large C# source files, in both 1.5.1 and 2.0 EAP builds.
I am working on a project where C# source files are up to 10000 lines of code and with dozen of classes. As I come from Java background, it was very strange and frustrating for me in the beginning. Then I understood why it was done: handling with more then 10 source files in VS is a pain in the ass! The source files tab bar is stuck at the top of the editor and cannot be made multiline! (Btw. can ReSharper do something about it, like alowing editor tabs to be positioned left or right and allowing tabbar to be multiline?)
Well, to return to the topic. It tooks ReSharper 5-7 seconds to completely parse 10K lines C# source file on my 2GHz Athlon 64 machine. The only way is to turn off highlighting. I tried to turn off all warning/error highlighting, but to preserve sintax highlighting, but performance is the same. Is there any solution (except turning off highlighting completely, or per file in 2.0)? Could performance of ReSharper parser be improved?
Please sign in to leave a comment.
Hi
In our project ReSharper causes very significant delay on opening files with
10000 lines or more. It is rare when I need to open this auto-generated
file, but it sometimes happens while debugging. It would be nice if I can
setup RS to skip files large than XXX lines or KBs.
VS 2005 opens such files pretty fast.
Thank you
Hello Mileta,
file on my 2GHz Athlon 64
The guys from Jetbrains said several times before that the bottleneck is
not in parsing the source code but in installing the custom highlighters.
Resharper always parses the code regardless the highlighting mode since
otherwise it would be impossible to perform refactorings (and certainly the
speed is much higher than 10K lines per 5 sec).
So "the only way" you've found is indeed the only one to speedup IDE on such
large files.
I'd really reorganize your project. We use Visual SourceSafe and Visual
Studio, and yeah, it can be a pain at times, but the pain is far, far less
than having to do without syntax or color highlighting, or dealing with 5-7
second parsing times! Besides, the Resharper navigation tools make that tab
line at the top of the VS.Net editor obsolete anyway. Use
Ctrl-Tab/Shift-Ctrl-Tab, Ctrl-E, Ctrl-N, Ctrl-B, and other navigation tools
(along with a remapped "Back" and "Forward" key from VS itself so that it's
more accessible), and those tabs up at the top end up serving no more
purpose than letting you know the name of your file.
So just break up the file into one class per file and I think you'll end up
being MUCH happier.
"Mileta Cekovic" <no_mail@jetbrains.com> wrote in message
news:12984698.1123844942096.JavaMail.itn@is.intellij.net...
>
>