-
Notifications
You must be signed in to change notification settings - Fork 645
High CPU usage when working with cgo #2598
Comments
Thanks for reporting @RadhiFadlillah @stamblerre Based on the settings shared above, the only tool that the Go extension calls on each letter being typed is your fork of @RadhiFadlillah Can you try the new language server feature we have? That will avoid calling |
Hi @ramya-rao-a, thanks for the response.
Yes, I've already tried the language server. Unfortunately, it doesn't work any better, as can be seen here. After I enabled the language server and reload the window, the CPU usage started to spike even before I type anything. Soon after,
Yes, that's also my first thought, and I was planned to submit this issue in @stamblerre repository. However, when I checked the source code for |
After looking around, I found out that while Since The same thing also happened with With that said, I guess the problem is not from |
Thanks for the follow up @RadhiFadlillah! Can you log an issue with your findings at https://github.com/golang/go/ and provide a link here? |
@RadhiFadlillah are you using |
@ramya-rao-a sorry for late response, I've opened it in go#32821. @stamblerre I'm using Go 1.12.5. Both |
@RadhiFadlillah: Is this still an issue for you? |
This issue has been closed automatically because it needs more information and has not had recent activity. Thank you for your contributions. |
As title said, I'm experiencing high CPU usage when working with a
cgo
project. This problem happened everytime I type a character which can be seen here.Here are my
vscode-go
settings :The text was updated successfully, but these errors were encountered: