-
Notifications
You must be signed in to change notification settings - Fork 785
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Completion list takes far too long even after an initial list is generated #4209
Comments
That certainly sounds like either
|
Checked and I'm seeing the same behavior on 15.5.4 as well. Changed title to reflect that it's not specific to the preview. |
FYI: updated the repro instructions. The perf is bad enough that I need to move back to the classic SDK for now. Saved the current state though in repro/fsharp-intellisense-perf branch |
Yeah, stuff seems to be needlessly recomputed here and it's not just the delay in the editor: Note that successive Also noticed a bug where |
The move to the new SDK uncovered a bug in the F# language services. It's fairly impactful to typing so temporarily reverting back to the classic SDK until it's addressed. dotnet/fsharp#4209
Once I moved back to the old SDK the issue went away. Only been a few minutes but everything seems to be behaving as I would expect. |
I can repro. old sdk fast - new sdk branch slow |
The move to the new SDK uncovered a bug in the F# language services. It's fairly impactful to typing so temporarily reverting back to the classic SDK until it's addressed. dotnet/fsharp#4209
Labeling as |
I thought that I fixed this with #4121 - is that change included in VS 15.6 preview 2? |
Your change isn’t in preview 2, no. It should be in preview 3, which
will ship soon.
On Wed, Jan 24, 2018, at 11:14, David Wedelich wrote:
I thought that I fixed this with #4121[1] - is that change included in
VS 15.6 preview 2?> — You are receiving this because you commented. Reply to this email
directly, view it on GitHub[2], or mute the thread[3].>
|
@cartermp is the fix already checked into VS? I can check latest internal build of preview3 to see if it's fixed there for my case. |
Yep, insertion should be complete soon |
What build should have it? Happy to try and validate this fixed it if I know what build to look for. |
Candidate build was d15.6/27323.02 - @brettfo is that still accurate? |
I just tested out VsVim on new SDK in 27319.1.d15.6. The perf problem appears to be fixed there. Intellisense has the performance I would expect. |
That sounds promising. Very nice
Am 25.01.2018 19:15 schrieb "Jared Parsons" <notifications@github.com>:
… I just tested out VsVim on new SDK in 27319.1.d15.6. The perf problem
appears to be fixed there. Intellisense has the performance I would expect.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4209 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADgNKy99c_GDt-iyzyPmQsWVubbFg9kks5tOMS1gaJpZM4Rh9_8>
.
|
Excellent! Glad to see that @dhwed's changes here seem to have done the trick. Closing for now. |
My favourite phrase ever "has the performance I would expect.". Accurate, without giving away any details. :-) |
Is there any way I can test/use this fix?. Or an ETA when it will be accessible?. I've tried the nightly VSIX in 15.5.6 and performance is still slow for me ( though I get a worse performance than ~8 seconds) |
@btrepp Are you referring specifically to IntelliSense? 15.6 Preview 3 is the one that has the fix that addresses this specific issue. |
Unfortunately preview 3 the IDE crashes on load of my solution :(. |
@cartermp how I can help diagnose what's wrong? Should I try nightly build? |
It's doubtful that a nightly has fixed this, but it's worth a shot. I think we'll just need to debug it and see what's going on, possibly running a trace. I can consistently reproduce your issue (every time I hit |
Everywhere in the project where I'm trying so far. Removing netstandard2.0 target doesn't help. I could see by coloring that some heavy calcs are going one in background, even the gif above shows that |
Hey folks, sorry you are running into issues. Can I ask you do something?
This will give us traces that help us figure out the root cause. |
Nevermind, strike that - I missed we had a 100% repro on our side. If you are hitting other performance issues in the future in other areas, follow the above steps. |
Just as an update, with Spreads under the microscope, we identified a hot spot where things are being needlessly recomputed deep in the language service causing a 5-8+ second delay every time. When we profile Spreads converted back to old-style SDK, that hot spot is instant, and completion performance is what we would expect. Clearly, something is not being wired up at a top level, but we're not sure what it is yet. More digging is underway... |
I believe this should resolve it: #4889 This solves the issues in Area51 and Spreads that I managed to reproduce. |
Cool, thanks for looking into this so deeply! When it will be available at
least in the nightly build?
…On Sat, May 12, 2018, 5:01 AM Will Smith ***@***.***> wrote:
I believe this should resolve it: #4889
<#4889>
This solves the issues in Area51 and Spreads that I managed to reproduce.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4209 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAd5fL8m_UrLIAj9yafNAhFfDECC-Lbpks5txkKCgaJpZM4Rh9_8>
.
|
This should be available in nightlies once merged, yes. |
@0x53A @buybackoff However, both of your projects still have a problem: multi-targeting. I did some testing today and multi-targeted projects will cause invalidation and rebuild chunks of the world. I don't know how complicated it is to fix, but I have a good understanding now of what's happening in our tooling to probably start trying to fix it. From your projects, when using the fix here: #4889, completions and intellisense tend to be faster on immediate use. When you start using a bit more, you will notice it will take longer sometimes; that's due to invalidation from multi-targeting. Removing multi-targeting and just doing one target, you shouldn't have any issues once the fix is in place. |
@TIHan I could live with only .NET Standard 2.0 and have started to remove full .NET Framework target in an active branch. .NET 4.6.1, which supports standard 2.0, is old enough, and I have had needless pain with supporting 4.5.x. So if you have to choose between an ideal solution vs quick fix then please ship it ASAP for a single target. |
Latest nightly works approximately as fast as Rider for autocomplete. Thanks! |
@buybackoff Thanks for the followup! |
I'll close this out and open a separate issue about perf for multitargeting, so that there isn't a multi-page issue to find out the current state of things. |
Modified milestone to reflect that we're attempting to get this into a servicing branch. |
Just FYI, IntelliSense was dead completely in nightly (May 24 latest update at least, found y'day after rebooting and closing VS the first time after in started working) and VS 15.7.2 (or probably after updating VS). It was like Notepad.exe - just text. With May 25 nightly syntax coloring, tooltips and red squiggles work, but no autocomplete (at all, tested many minutes). Rider works. Same project, same file. |
@buybackoff Not sure how this is on your machine, but with latest master of Spreads the solution won't compile, and I noticed that anything involving Example of what's unresolved: I do get IntelliSense, just not for things which are defined elsewhere (and failing to build): This is with the May 25th nightlies atop 15.7.2. Is this consistent with what you're noticing? |
On master in Spreads only 4 projects should complile (the head one is
Spreads.Core.Tests, others are WIP). I try to push only what complies and
am reworking everything else. Yet I could run tests from R# in the project
..Tests.Core (the only one alive S..Tests.Core), everything compiles. But
IDE is broken again.
Did the working one make into 15.7.2? Maybe I should just not use nightly.
…On Sat, May 26, 2018, 2:18 AM Phillip Carter ***@***.***> wrote:
@buybackoff <https://github.com/buybackoff> Not sure how this is on your
machine, but with latest master of Spreads the solution won't compile, and
I noticed that anything involving this in SortedMap will fail due to its
inherited type (ContainerSeries<'K, 'V, SortedMapCursor<'K, 'V>>) being
defined in a project which doesn't compile. Various other things seem to
not work due to this.
Example of what's unresolved:
[image: image]
<https://user-images.githubusercontent.com/6309070/40569303-5592b4de-6035-11e8-9922-4b7ecf28ebd7.png>
I do get IntelliSense, just not for things which are defined elsewhere
(and failing to build):
[image: image]
<https://user-images.githubusercontent.com/6309070/40569517-18d38814-6037-11e8-9a5c-325f92b8a347.png>
This is with the May 25th nightlies atop 15.7.2. Is this consistent with
what you're noticing?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4209 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAd5fCnRTU2Eh3BL4GGanZXY07mtOKCoks5t2JEugaJpZM4Rh9_8>
.
|
@buybackoff I believe 15.7.2 contains one of the fixes, but not the multitargeting one. Since Spreads.sln is still using multitargeting, it's likely to be slow. If you can afford to retarget only to That said, the experience noted above is venturing into undefined behavior. Completion on The only true solution to that is to rewrite the parser to focus on error recovery (like the Roslyn team did for C#), but this is a large undertaking that is currently not as important as other performance issues, such as high memory usage and paying off years of technical debt w.r.t GC pause times under various scenarios. We get bit by it as well and want to do this, but the current work list of things we must do w.r.t performance and technical debt is quite large. |
How to easily install a concrete nightly version that worked several days ago? I have retargeted F# to only The only change I did in additional to VS restart (and the reason to restart) is updating R# to 2018.1.1. But suspending it doesn't change anything in F#. |
(On mobile, hence brief reply)
Instructions here:
https://blogs.msdn.microsoft.com/dotnet/2017/03/14/announcing-nightly-releases-for-the-visual-f-tools/
On Sat, May 26, 2018, at 10:35, Victor Baybekov wrote:
How to easily install a concrete nightly version that worked several
days ago? I have retargeted F# to only netstandard2.0 and everything
worked very well with the nightly after the first fix (without
multitargeting), but stopped working after restarting VS and new
nightly automatically installed. This definitely not related to
Spreads, a standalone Deedle (that targets .NET 4.0) doesn't have
autocompletion even on List members.> The only change I did in additional to VS restart (and the reason to
restart) is updating R# to 2018.1.1. But suspending it doesn't change
anything in F#.> — You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub[1], or mute the
thread[2].
|
@buybackoff Do you have a repro for what you mentioned here?
Various files seem fine for me with Deedle.sln: This is with the may 25th nightlies installed into 15.7.2. |
@cartermp that's weird but now I have it working even in Spreads and seems like understand the reason: my copy of Deedle was not built and I disabled the automatic build of Spreads's F# project (Collections) while testing its dependency (Core) to save time on build while making many small changes in the Core project. If I clean the F# project in Spreads I could reproduce that there is no autocomplete. Yet definitely I was running tests that used the F#-produced dll, but it was not rebuilt while it dependency was changing. When I delete |
There are some known issues around |
edits by @cartermp
Current issue:
Thanks to @buybackoff for the repro:
build.cmd
)SortedMap.fs
file.125
, and typethis.
Expected: completion list appears reasonably fast, at least certainly after the first try.
Actual: completion appears many seconds after the
.
every time.Old issue:
Recently started playing around with VsVim on 15.6 preview 2 and noticed that Intellisense is extremely slow. At first I thought it was broken but eventually found it's just taking ~6-8 seconds to display. This reproduces consistently.
_selectionTracker.UpdateSelection()
_selectionTracker.
I would expect Intellisense to popup rather quickly here. Instead it takes ~8 seconds to popup. You can delete the
.
and retype and see the effect over and over again.Of possible interest here is this F# project is on the new SDK.
The text was updated successfully, but these errors were encountered: