Skip to content

Error highlighting takes 12 seconds to update #3707

Closed

Description

@vasily-kirichenko

1

Activity

  1. vasily-kirichenko commented on Oct 7, 2017

    @vasily-kirichenko
    ContributorAuthor

    Ionide is able to do the same job in about 3 seconds:

    1

  2. vasily-kirichenko commented on Oct 7, 2017

    @vasily-kirichenko
    ContributorAuthor

    Rider is even faster:

    1

  3. vasily-kirichenko commented on Oct 7, 2017

    @vasily-kirichenko
    ContributorAuthor

    CPU is hardly loaded at all:

    1

  4. dsyme commented on Oct 7, 2017

    @dsyme
    Contributor

    Yeah, it's not CPU perf. It's sure to be a combination of Roslyn choices, ordering of analyzers, ordering of which files are updated, and other delays.

    You might also want to check if turning off in-memory project references makes a difference

  5. vasily-kirichenko commented on Oct 7, 2017

    @vasily-kirichenko
    ContributorAuthor

    12 seconds was with this settings:

    image

  6. vasily-kirichenko commented on Oct 7, 2017

    @vasily-kirichenko
    ContributorAuthor

    OK, switching off Simplify Name analyzer makes error highlighting work as fast as Ionide (~3 seconds).

    @dsyme I'm afraid you added some Async.Sleeps in the analyzer loop, it may cause this behavior (no CPU load, long delay).

  7. vasily-kirichenko commented on Oct 7, 2017

    @vasily-kirichenko
    ContributorAuthor
  8. vasily-kirichenko commented on Oct 7, 2017

    @vasily-kirichenko
    ContributorAuthor

    I think it's clear now that Simplify Name analyzer is executed before document diagnostics analyzer.

  9. dsyme commented on Oct 9, 2017

    @dsyme
    Contributor

    Yes. Note that SimplifyName is off by default, see this:

                { // We have this off by default, disable until we work out how to make this low priority 
                  // See https://github.com/Microsoft/visualfsharp/pull/3238#issue-237699595
                  SimplifyName = false 
    
  10. dsyme commented on Oct 9, 2017

    @dsyme
    Contributor

    @vasily-kirichenko My understanding is that removing the delays doesn't solve this problem, since my understanding is that the SimplifyName analysis process can take considerable time (it makes many FCS requests) - at least adding a few seconds. Fundamentally we need Roslyn to support high-priority analyzers

  11. saul commented on Oct 9, 2017

    @saul
    Contributor

    @dsyme how does C#/VB inform the IDE of IntelliSense errors? I've always thought we're not using the correct mechanism.

  12. dsyme commented on Oct 9, 2017

    @dsyme
    Contributor

    @saul I don't the details. I assume we're using the right mechanism considering we're sitting on top of Roslyn

  13. dsyme commented on Oct 13, 2017

    @dsyme
    Contributor

    Since SImplifyName is off by default I'm going to close this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions