You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error highlighting takes 12 seconds to update #3707
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
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
@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
Activity
vasily-kirichenko commentedon Oct 7, 2017
Ionide is able to do the same job in about 3 seconds:
vasily-kirichenko commentedon Oct 7, 2017
Rider is even faster:
vasily-kirichenko commentedon Oct 7, 2017
CPU is hardly loaded at all:
dsyme commentedon Oct 7, 2017
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
vasily-kirichenko commentedon Oct 7, 2017
12 seconds was with this settings:
vasily-kirichenko commentedon Oct 7, 2017
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).vasily-kirichenko commentedon Oct 7, 2017
#3708
vasily-kirichenko commentedon Oct 7, 2017
I think it's clear now that Simplify Name analyzer is executed before document diagnostics analyzer.
dsyme commentedon Oct 9, 2017
Yes. Note that SimplifyName is off by default, see this:
dsyme commentedon Oct 9, 2017
@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
saul commentedon Oct 9, 2017
@dsyme how does C#/VB inform the IDE of IntelliSense errors? I've always thought we're not using the correct mechanism.
dsyme commentedon Oct 9, 2017
@saul I don't the details. I assume we're using the right mechanism considering we're sitting on top of Roslyn
dsyme commentedon Oct 13, 2017
Since SImplifyName is off by default I'm going to close this