I've found in the last few days that CodeRush for Roslyn in combination with StyleCop.Analyzers (nuget version) cause a painfull slowdown in VS2015 after ~1h of working on a mid-size solution.
CodeRush alone works fine, and StyleCop.Analyzers works also fine. But in combination, the editor is so slow, that i see a real painfull delay between keyboard inputs.
It feals like a 0.5-1sec between a keypress…
Also Intellisense is delayed.
Kind regards
Silvio
Visual Studio "About" Informations
Microsoft Visual Studio Community 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Version 4.6.01586
Installed Version: Community
Visual Basic 2015 00322-20000-00000-AA092
Microsoft Visual Basic 2015
Visual C# 2015 00322-20000-00000-AA092
Microsoft Visual C# 2015
Visual C++ 2015 00322-20000-00000-AA092
Microsoft Visual C++ 2015
Application Insights Tools for Visual Studio Package 7.8.00927.1
Application Insights Tools for Visual Studio
ASP.NET and Web Tools 2015.1 14.1.20907.0
ASP.NET and Web Tools 2015.1
ASP.NET Web Frameworks and Tools 2012.2 4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563
ASP.NET Web Frameworks and Tools 2013 5.2.40314.0
For additional information, visit http://www.asp.net/
Azure App Service Tools v2.9.5 14.0.20810.0
Azure App Service Tools v2.9.5
Azure Data Lake Node 1.0
This package contains the Data Lake integration nodes for Server Explorer.
Azure Data Lake Tools for Visual Studio 2.1.0000.0
Microsoft Azure Data Lake Tools for Visual Studio
CodeRush for Roslyn 16.1.7.0
DevExpress CodeRush for Roslyn package.
Color Theme Designer 1.0
Designer for creating new color themes
Common Azure Tools 1.8
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
Fabric.DiagnosticEvents 1.0
Fabric Diagnostic Events
JavaScript Language Service 2.0
JavaScript Language Service
JavaScript Project System 2.0
JavaScript Project System
Microsoft .NET Core Tools (Preview 2) 14.1.20907.0
Microsoft .NET Core Tools (Preview 2)
Microsoft Azure Hive Query Language Service 2.1.0000.0
Language service for Hive query
Microsoft Azure Mobile Services Tools 1.4
Microsoft Azure Mobile Services Tools
Microsoft Azure Tools 2.9
Microsoft Azure Tools for Microsoft Visual Studio 2015 - v2.9.40715.2
NuGet Package Manager 3.5.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
PreEmptive Analytics Visualizer 1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.
SQL Server Data Tools 14.0.60812.0
Microsoft SQL Server Data Tools
ToolWindowHostedEditor 1.0
Hosting json editor into a tool window
TypeScript 1.8.36.0
TypeScript tools for Visual Studio
I have uploaded the results from PerfView to your ftp server.
Hi Silvio,
We are concerned to hear that you faced this issue using our product. Thank you for providing the list of enabled extensions and PerfView log files. We greatly appreciate your cooperation in investigating this problem. Please give us some time to examine them.
Also, we have another report about Visual Studio slowdown with similar symptoms but it is not related to the StyleCop.Analyzers extension. We have determined that the use of Spell Checker causes the issue in this case. It is possible that the issue you are experiencing has the same cause. To check it, follow these steps:
6. Let us know whether slowdowns persist after Spell Checker is disabled.
We are looking forward to hearing from you.
Hi Alexander,
currently I had already disabled the Spell Checker. But with the attached build the performance is perfect.
I enabled the Spell Checker in this build as a quick check, and the slow down is right back.
I don't know how this is related to StyleCop. I will repeat this with SpellChecker enabled and remove StyleCop from my solution … and give an update.
Thanks
Silvio
Update for New Build, SpellChecker enabled and StyleCop.Analyzers(nuget) removed
The slowdown is noticeable, but very weak on my machine. Maybe it's the pure number of analyzers?
I have StyleCop.Analyzers and Refactoring Essentials (both as nuget) included in my project.
With all this stuff enabled and SpellChecker turned on it's impossible to work, because the keyboard delay is so big.
I will continue with build 16.1.7.16278 and disable the SpellChecker.
Thanks
Silvio
Hi Silvio,
Thank you for the detailed explanation of your experience with build 16.1.7.16278. It confirms our assumption about the cause of the Visual Studio slowdowns on your side. In your provided PerfView log files, we also see that the Spell Checker code analysis takes a lot of time when CPU loading is active. As I mentioned earlier, the release 16.1.7 build has an issue with full disabling of the Spell Checker feature. It explains why the slowdowns persist even when Spell Checker is turned off.
This issue has high priority for us and we will try to resolve it as soon as possible. We greatly appreciate your patience.
Hi Silvio,
Thank you for your patience. We have found the cause of the slowdown with enabled Spell Checker on projects that use additional analyzers. We have resolved the issue and prepared the hotfix with these changes: DevExpress.CodeRush.Roslyn-16.1.9.16344.vsix. We would greatly appreciate it if you install this build, enable the CodeRush Spell Checker feature and check whether it resolves the issue with slowdowns on your side.