-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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
Severe performance degradation opening large folders in latest release #79336
Comments
/needsMoreInfo - please review https://github.com/Microsoft/vscode/wiki/Performance-Issues and post the additional info it suggests gathering. |
Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue. Happy Coding! |
Here's the performance issue reporter data, and attaching the both the Javscript profiler data and Performance profiler data of me typing into a terminal while a folder with 20k files is open (where it has >2s typing lag)
Extensions are disabled |
Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: https://code.visualstudio.com/insiders/ |
Same thing on Insider's build, here's a new set of performance captures using insiders Profile-20190821T132035.json.txt |
@RMacfarlane moving to you as this looks like shared process is spiking, probably the workspace statting? Is there a way to turn that off? |
Yes, this is likely due to the workspace stats call. I made a change yesterday that should improve perf somewhat, @starkat99 can you let me know if you see any difference with today's insiders? On tomorrow's insiders, changing the |
For another tip to reduce stat load see #78710. I submitted a PR for that issue but it hasn't yet been accepted. |
Sorry for the delay. I tried the latest insiders again, nothing's changed. Still getting severe performance issues. Attaching new profiling results |
@starkat99 Thanks for testing it. Did changing the |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
I tried this again in today's Insiders build. The issue has mostly gone away, just not completely. Most of the UI seems to be functioning normally now (with or without telemetry enabled, it makes no difference) with the exception of the terminal. As soon as a terminal receives focus (or a new terminal is opened, unhidden, etc.) the severe UI lagginess returns to the entire UI. But once I change focus away from terminal or close it and give it a couple seconds for the lag to resolve, the rest of the UI returns to regular performance. So, as long as I avoid using a terminal everything is usable again with a large workspace folder. |
Thanks @starkat99! I'm able to reproduce this issue, I created a folder with 30k text files in it at the top level. This doesn't seem to be related to the workspace stats call, since it also happens when telemetry is off. When the terminal has focus, there are repeated calls to |
This this new setting in insiders:
|
I regularly have Code open to a workspace with a large number of files in a single folder ( >20k files). I've never really had a problem with that until the latest release of 1.37.1, where I experience severe lagginess in every element of Code UI, especially text response in editor windows and terminal. This occurs even when Explorer sidebar is not visible. CPU usage shows Code using a large percentage of CPU. Previous version 1.37 seemed ok (but not great) for the day or two I had it, and I definitely know 1.36 builds worked just fine for this case. This issue occurs with extensions disabled (it's pretty much impossible to run with extensions at all in this state).
Steps to Reproduce:
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: