-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
High CPU usage when opening any file #2176
Comments
I get the same behavior. With the vim extension enabled CPU spikes quite a lot, but only when an editor is open. With a file open: With an extension page open: In my case:
I'm pretty sure it started happening with the latest VSCode update. It's become very noticeable since. |
I'd like to mention that besides high CPU usage, working with VSCode gets quite slow. Keypresses get delayed and you need to wait before a word finishes typing. |
@mrsimo I think there's an extension profiling thing. Could you try this and see if you see anything interesting? https://code.visualstudio.com/docs/extensions/debugging-extensions#_profiling-your-extension Also, does this replicate with all settings at default? |
Hey! The performance went back to normal with the Insiders build. Just tried that and with all my settings it's not causing any high CPU load. Back to the standard VSCode, removing all my settings also seems to fix the issue. Curiously, if I apply them again, it doesn't increase the load. I need to stop VSCode and open it again (with my settings) for it to use high CPU. In case it helps, these are my settings: https://gist.github.com/mrsimo/4f54bd620c4fbfe9e7e90aa052c91909 I did the extension profiling thing, here's what it generated when recorded for about 10s: https://monosnap-albertllop.s3.amazonaws.com/CPU-20171129T202207.cpuprofile Here's a screenshot of the top of another profile: Cheers! |
@mrsimo In your particularly case, this is likely the cause: https://gist.github.com/mrsimo/4f54bd620c4fbfe9e7e90aa052c91909#file-gistfile1-txt-L15. See #2124 |
Yes, that seems to be it. Thanks! |
The problem was resolved after updated to the latest version of vscode. This issue can be closed. Thanks. @rebornix |
From @dqw on November 24, 2017 3:31
Steps to Reproduce:
1.Open any file,the CPU usage over 75%
2.Close all file, the CPU usage down to 10%
3.@rebornix When I disabled vim extension,the problem solved
Reproduces without extensions: No
Copied from original issue: microsoft/vscode#39074
The text was updated successfully, but these errors were encountered: