Painfully slow building in 6.0

I'm using VS 2010 and Resharper 6.0.2151.53
Windows 7 x64
AMD Quad-core
4 GB RAM

We've got a solution that has 8 web projects and 24 C# projects.

Before  installing Resharper all of the C# projects could be rebuilt in about 1  minute. Individual projects could do an incremental build in as little  as 5-10 seconds depending on if any dependencies had to be rebuilt.

After  installing Resharper an incremental build takes 5+ minutes, makes  Visual Studio unresponsive and at various times during the build makes  unreleated programs (eg. FireFox and Chrome) unresponsive for a few  seconds at a time. I've noticed that during this time the hard drive  activity light is on solid the entire time.

There is no indication in the lower right bar that ReSharper is doing anything (eg. Processing Assemblies/Source Files).

I  discovered that if I change my web projects to NOT use project  dependencies, but just plain file system dependencies the build time  returns to normal. The problem with this is that when the web project's  dependencies are rebuilt they don't get copied to the web project  immediately which is important for a quick code-build-test-fix-build  cycle.

This makes ReSharper completely unusable for us.

Another  performance problem I've noticed is when loading the same solution it  takes about 2 minutes from the launch of Visual Studio until it is  usable. Most of this time is spent "Processing Source Files" for all of  the javascript files we have in the web projects. We don't need  ReSharper for our javascript, especially if it slows loading time so  much.

5 comments

Hello Blake,

First of all, could you please gather some performance snapshots of the slow
build following the instructions at http://tinyurl.com/6xgxpw5 and upload
them to ftp://ftp.intellij.net/.uploads/. As to parsing JavaScript files,
do you see this message each time you load your solution in Visual Studio?
How many js files do you have in your solution? Thank you!

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

I'm using VS 2010 and Resharper 6.0.2151.53
Windows 7 x64
AMD Quad-core
4 GB RAM
We've got a solution that has 8 web projects and 24 C# projects.

Before  installing Resharper all of the C# projects could be rebuilt
in about 1  minute. Individual projects could do an incremental build
in as little  as 5-10 seconds depending on if any dependencies had to
be rebuilt.

After  installing Resharper an incremental build takes 5+ minutes,
makes  Visual Studio unresponsive and at various times during the
build makes  unreleated programs (eg. FireFox and Chrome) unresponsive
for a few  seconds at a time. I've noticed that during this time the
hard drive  activity light is on solid the entire time.

There is no indication in the lower right bar that ReSharper is doing
anything (eg. Processing Assemblies/Source Files).

I  discovered that if I change my web projects to NOT use project
dependencies, but just plain file system dependencies the build time
returns to normal. The problem with this is that when the web
project's  dependencies are rebuilt they don't get copied to the web
project  immediately which is important for a quick
code-build-test-fix-build  cycle.

This makes ReSharper completely unusable for us.

Another  performance problem I've noticed is when loading the same
solution it  takes about 2 minutes from the launch of Visual Studio
until it is  usable. Most of this time is spent "Processing Source
Files" for all of  the javascript files we have in the web projects.
We don't need  ReSharper for our javascript, especially if it slows
loading time so  much.

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



0

I've uploaded a trace of part of the build to: ftp://ftp.intellij.net/.uploads/blakel.snapshot.dtp.zip

I allowed it to run for about 10 minutes and it built 7 of the smaller C# projects in that time. There were 10 more large projects to go and I couldn't wait for it to finish. I would assume the same thing is happening over and over so hopefully this snapshot is usable. If not I can try to profile again at lunch or over night when I don't need to use my computer.


As for the javascript files there are 1,400 individual .js files. Several of them are in the 500KB - 4 MB range (multiple versions of ExtJS and jQuery both compressed and debug varieties). Those files are the ones that most of the "Processing Source Files" time is spent on.

Those javascript files are processed every time the solution is opened.

I have added all of our web projects to the list of folders that should be skipped in the code inspection settings. I also have solution wide inspection disabled on all of the projects in the solution and solution wide inspection turned off in the ReSharper Options menu.


As I said before, these slow builds only seem to occur when using Project References in the web projects.

0

Hello Blake,

Thank you! There's definitely some performance problem and you're welcome
to monitor its status here: http://youtrack.jetbrains.net/issue/RSRP-264120.

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

I've uploaded a trace of part of the build to:
ftp://ftp.intellij.net/.uploads/blakel.snapshot.dtp.zip

I allowed it to run for about 10 minutes and it built 7 of the smaller
C# projects in that time. There were 10 more large projects to go and
I couldn't wait for it to finish. I would assume the same thing is
happening over and over so hopefully this snapshot is usable. If not I
can try to profile again at lunch or over night when I don't need to
use my computer.

As for the javascript files there are 1,400 individual .js files.
Several of them are in the 500KB - 4 MB range (multiple versions of
ExtJS and jQuery both compressed and debug varieties). Those files are
the ones that most of the "Processing Source Files" time is spent on.

Those javascript files are processed every time the solution is
opened.

I have added all of our web projects to the list of folders that
should be skipped in the code inspection settings. I also have
solution wide inspection disabled on all of the projects in the
solution and solution wide inspection turned off in the ReSharper
Options menu.

As I said before, these slow builds only seem to occur when using
Project References in the web projects.

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



0

Hello Blake,

Presumably, we've fixed the problem with slow solution building. Please try
the next nightly build when it comes out and let me know if the problem is
still there. Thank you!

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

I've uploaded a trace of part of the build to:
ftp://ftp.intellij.net/.uploads/blakel.snapshot.dtp.zip

I allowed it to run for about 10 minutes and it built 7 of the smaller
C# projects in that time. There were 10 more large projects to go and
I couldn't wait for it to finish. I would assume the same thing is
happening over and over so hopefully this snapshot is usable. If not I
can try to profile again at lunch or over night when I don't need to
use my computer.

As for the javascript files there are 1,400 individual .js files.
Several of them are in the 500KB - 4 MB range (multiple versions of
ExtJS and jQuery both compressed and debug varieties). Those files are
the ones that most of the "Processing Source Files" time is spent on.

Those javascript files are processed every time the solution is
opened.

I have added all of our web projects to the list of folders that
should be skipped in the code inspection settings. I also have
solution wide inspection disabled on all of the projects in the
solution and solution wide inspection turned off in the ReSharper
Options menu.

As I said before, these slow builds only seem to occur when using
Project References in the web projects.

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



0

Hi Andrey,

I just got 6.0.2152.985 and the issue with slow builds seems to be resolved. Thanks!

0

Please sign in to leave a comment.