-
Notifications
You must be signed in to change notification settings - Fork 645
godoc processes hogging cpu #687
Comments
Did you recently upgrade to Mac OS X Sierra? There is a known issue of performance on Mac OS X Sierra. See #503 Run the command |
I already did that. I still get godoc processes running wild. |
Is it project specific? Does it happen on smaller packages as well? |
I am seeing this too but chalked it up to using Insiders builds and go 1.8beta1. I am also on macOS Sierra. AFAICT it is not project specific and happens on smaller projects as well. Killing the godocs process "fixes" the problem but it returns when I leave the code editor idle for a while. |
@ramya-rao-a I did re-install the tools but still had the problem. Yesterday I had a full day of coding and it never happened. I updated to latest Insiders build yesterday morning though so I was hoping that a fix snuck in! |
@ramya-rao-a I think the hover provider is a bit too liberal in spawning A few suggestions:
I suspect the last one will have the most impact. The doc processes do consume a lot of CPU, which is fine if they only run for < 1s. However if we allow 4-5 of these processes to run simultaneously as the user moves the mouse around the editor we'll surely be impacting performance. |
@ramya-rao-a This just happened again, same pattern: out of the blue the fans go nuts and when I go look it's a |
@zmb3 I can get started with your second suggestion. I am checking with the vscode team if there is way for the extension to know if the cursor is over a valid identifier based on the language grammar.
|
@ramya-rao-a updated, will keep watching for strangeness, thanks! |
This latest environment still has the issue of godoc processes clogging the CPU. I suggest "go.docsTool": "gogetdoc" as default value. Thanks :) |
The latest update of the Go extension (0.6.54) has the integration with the language server available via a setting The features powered by the language server are Hover, Definition, Find All References, Signature Help, Go to Symbol in File and Workspace. Give that a try and let us know if you see improvements in the performance |
go.useLanguageServer works. |
It's been over a year since the original issue was logged and there has been many changes in the extension since then that has improved perf. Locking and closing this issue for now. If anyone sees any perf issues, please log a new issue |
Visual Studio Code 1.7.2
Go Extension 0.6.51
MacOS: Sierra 10.12.1
After a couple of minutes into an editing session of go code I get at least one godoc process taking up lots of cpu. Killing these processes is a work around - still annoying.
The text was updated successfully, but these errors were encountered: