Ticket T834189
Visible to All Users

Coderush very slow gathering suggestions (best part of a minute!)

created 5 years ago

Sometime either since updating to the latest VS2019 (16.3.9) or updating to the latest Coderush, bringing up the refactorings menu has become painfully slow, often taking the best part of a minute. During this time it will show "Gathering Suggestions", then this will disappear, reappear for maybe 5 to 10 seconds, after which the refactoring menu will appear. After that it will be okay for a while, then happen again, possibly after certain code changes.
I've recorded some performance data which illustrates the problem. I opened VS2019 and my solution. Initially I was unable to reproduce the problem. I then made a code change, selected a block of code, and asked for the refactoring menu, at which point the problem manifested. I'd also point out that this time I was selecting a block of code, but the context seems to vary - recording these logs was triggered by it happening when clicking in a method name so that I could use codrerush to rename it.

Show previous comments (12)
PW PW
Przemyslaw Wlodarczak (DevExpress) 5 years ago

    Kevin,

    In this case, cancel displaying the lightbulb menu, start tracing the performance, move the caret one character left or right, and try to invoke the lightbulb menu again. If the delay is somehow connected to how CR is processing your code and is not a result of a delay inside the Roslyn engine in Visual Studio, then it should be reproducible.

    KO KO
    Kevin O'Donovan 5 years ago

      Okay, will try that next time, thanks

      PW PW
      Przemyslaw Wlodarczak (DevExpress) 5 years ago

        Kevin,

        Just a follow-up: we rewrote the "Pull Member Up" refactoring in CodeRush 19.2.9. Now, it provides much better performance. You can now enable it.

        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.