Bug Report T946090
Visible to All Users

Performance - A delay occurs on applying refactoring or Code Cleanup if a large number of assemblies is loaded

created 4 years ago

Hello support,
with update to CodeRush version 20.2.3 we are getting performance problems:

Code
2020.11.03 16:14:17.0391 Performance: Delay 14057 ms DispatcherInvoke <GetOperationApplyFunc>b__0 DevExpress.CodeAnalysis.Refactorings.CodeActionHandler+<>c__DisplayClass2_0 2020.11.03 16:14:17.0411 Performance: Delay 14071 ms VsEventHandler DocumentServices_TextDocumentSaved DevExpress.CodeRush.Foundation.CodeCleanUp.CleanUpOnSaveService TextDocumentSaved

Do you have ideas how to prevent them?
Do u need more information, e.g. an example solution?
The checkboxes for apply cleanup on action are all disabled:
Clipboard-File-1.png

Also formatting a *.cs-document is taking very long time now.

Show previous comments (5)
AE AE
Alex Eg (DevExpress) 4 years ago

    You are welcome, Norman!
    Thank you for your cooperation and assistance!

      The Hotfix CodeRush 20.2.3.20311 you provided, solved the performance issues. But when the official update to 20.2.4 was installed, CodeRush turns performance down again (VS 2019 complains about CodeRush turning down performance). It helped to reinstall the hotfix 20.2.3.20311.

      Btw. May it be a problem that the hotfix was installed using an exe-File, while the update was installed using a vsix or something else. My system settings in Apps & Features still report CodeRush 20.2.3.20311 installed while VS reports 20.2.4 installed.

      DevExpress Support Team 4 years ago

        Hello,

        I am concerned to hear that the performance issues are reproducible with CodeRush v20.2.4.
        I rechecked, and our changes that fix these issues are present in CodeRush v20.2.4.

        Could you please help us in our further research and follow the steps below?

        • Uninstall CodeRush using "Apps & Features";
        • Run Visual Studio and check that CodeRush is not installed (if it is, uninstall it from Visual Studio using the "Extensions -> Manage Extensions" menu item);
        • Install CodeRush v20.2.4 using the .exe or .vsix installer (doesn't matter which one);
        • Collect performance logs at the moment of the issue (use steps listed in the following article: How to: Collect Diagnostic Logs).
        • Send us CodeRush log files (they can be obtained at "%LocalAppData%\CodeRush").

        I look forward to hearing from you.

        Answers approved by DevExpress Support

        created 4 years ago

        We have addressed the issue described in this ticket and will include a fix in our next maintenance update. To apply this solution before official release, request a hotfix by clicking the appropriate version link.

        Note: Hotfixes may be unavailable for betas/updates set for release within a week.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.