x/tools/gopls: high cpu usage when make changes in package which have some cgo package dependents #50151
What did you do?
I'm work on a monorepo with some cgo packages in VSCode, when i modify the core package that cgo packages depends on, the cpu usage goes 100%.
which shows that there are several
i must run
What did you expect to see?
What did you see instead?
Editor and settings
The text was updated successfully, but these errors were encountered:
I have compiled a modified version of gopls with cgo disabled:
it may better to add a command line option
Thanks for the investigation and experiment @zhuah
I wonder what's breaking when cgo is completely disabled. (related to #35721)
There are still an issue
Yes, but even for cgo packages, it's also acceptable for me without cgo type checking, just like GoLand.
Yes, it's already good enough for me. Also, after disabled cgo, there are large improvement of setting workspace speed.