shekharpro / mb-unit

Automatically exported from code.google.com/p/mb-unit
0 stars 0 forks source link

Gallio performance optimization for ReSharper #392

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Create a project that contains a large number of different namespaces (can
be in one file or spread over several files), each of which contains one or
more MbUnit test fixtures.

What is the expected output? What do you see instead?
When editing the tests, I expected ReSharper's code inspection to take
about one second, but it takes up to 12 seconds instead. This also causes a
significant lag in the text editor (e.g. up to a 4-second delay when you
hold down the backspace key on any statement in any file in the project). 

What version of the product are you using? On what operating system?
Using Gallio 3.0.5.546, ReSharper 4.1 for C#, and Visual Studio 2008 SP1 on
Windows XP SP3

Please provide any additional information below.
I verified that turning off ReSharper's code inspection resolves the editor
lag issue, and that uninstalling Gallio' ReSharper and Visual Studio
plug-ins resolves the entire issue. I used the attached file to verify the
problem.

Original issue reported on code.google.com by cko...@gmail.com on 17 Feb 2009 at 9:42

Attachments:

GoogleCodeExporter commented 8 years ago
This is a hard problem to solve.

Basically ReSharper just calls its unit test providers whenever something 
(anything)
changes in the file.  It doesn't specify what has changed so Gallio has to go 
out and
rebuild its whole list of tests for a file even if just one character has 
changed. 
Unfortunately ReSharper does this in the foreground thread too so it hangs the 
IDE!

I'll see if I can gnaw off some of the performance bottlenecks in Gallio itself 
but
the workaround may be to try to keep the test classes small and to avoid using 
too
many complex test base classes (since that brings in extra stuff for Gallio to 
work
over).

Original comment by jeff.br...@gmail.com on 4 Mar 2009 at 6:17

GoogleCodeExporter commented 8 years ago
This is much better under R# 4.5.  I'll keep working on R# performance but I've
exhausted the easy improvements for now using additional caching.

Original comment by jeff.br...@gmail.com on 31 Mar 2009 at 3:56