These are chat archives for DotNetAnalyzers/StyleCopAnalyzers

23rd
Feb 2017
Johan Appelgren
@appel1
Feb 23 2017 08:32
Is there anything I, as a user, can do to improve performance? Turn off particularly heavy rules or something? SA more than doubles the compilation time for us.
Johan Larsson
@JohanLarsson
Feb 23 2017 08:44
Do you have many warnings?
Dunno about compilation time but warnings slows down VS a lot, especially when using R#
Johan Appelgren
@appel1
Feb 23 2017 08:49
None
Johan Appelgren
@appel1
Feb 23 2017 10:53
Looks like maybe half of the time can be attributed to the xml doc analysers.
Johan Larsson
@JohanLarsson
Feb 23 2017 10:55
They can be disabled in many places ime, test projects for example.
I often disable doc nags in applications also.
Johan Appelgren
@appel1
Feb 23 2017 13:28
Looks like I was wrong, turning off xml doc makes very little difference.
Sam Harwell
@sharwell
Feb 23 2017 14:47
@appel1 For a while at least, the biggest overhead came from simply having the analyzer engine enabled. The second biggest source of overhead (which now may be the biggest overall) is cases where diagnostics are reported. This applies even if you have them suppressed with #pragma or [SuppressMessage].
There was ongoing work to improve the analyzer engine performance
We've gone to great lengths to make sure this project performs as well as possible, specifically to avoid situations like you describe. Some limitations which resulted in performance/memory overhead for the 1.0.0 release have been resolved for the 1.1.0 beta (using features provided by Roslyn).
Sam Harwell
@sharwell
Feb 23 2017 14:52
Note that with the previous comment I'm not trying to say you're wrong about the experiences you've been having. I'm more trying to say if you're running into a performance problem and don't have issues getting reported (even if suppressed), then:
  1. It's unlikely that we'll be able to quickly make a big improvement since much of the project is already "tuned"
  2. We really care about improving the experience, so even if we can't fix it immediately we're interested in finding solutions that address your needs