-
Notifications
You must be signed in to change notification settings - Fork 645
Go development is generally slow when using github.com/uudashr/gopkgs #1490
Comments
Thanks for reporting @codingconcepts! We need both the import path and package name for the installed packages to provide certain features in the Go extension. The results from What we can do is set the expiry to be the maximum between 5 seconds and the time it took to run cc @uudashr |
@codingconcepts Can you try out the below version of the extension and see if it helps?
|
Hey Ramya, I installed the vsix without issue and have re-installed the two packages I've been ignoring updates for since discovering the performance improvement:
Thanks for your help with this, I'll keep an eye on things today and let you know how I get on. |
Hey Ramya, vscode has become very slow again during the course of the day unfortunately. I've seen gopkgs consistently spiking to ~13% CPU and guru consistently spiking to ~350% CPU. |
Regarding Run Can you open |
The results are a little misleading as the wall clock time is ~20s but here's a gopkgs 1.36s user 1.95s system 14% cpu 22.070 total I've updated the cache expiry of |
The reason I suggested increasing the time is just narrow down what the issue really is. Is it just that But then I realized just now that we have put checks in place such that if a previous request to So increasing the expiry time is not going to do the trick. My guess is that even after you change to This is about |
@codingconcepts Any updates? |
Hey ramya, sorry for the delay! Unfortunately, things are still very very slow. I'll kick off a |
It's also very slow on save (as I have [and want] linters running). Gopkgs spikes at around 7% CPU for about 30s. |
As you can imagine, GoToDefinition is also very slow too. |
@codingconcepts update gopkgs and also |
Hiya, Here's the output for the first command: 6103
gopkgs 2.06s user 3.18s system 18% cpu 28.842 total
wc -l 0.00s user 0.00s system 0% cpu 28.838 total And the second command: 1907
gopkgs -workDir=$(go list -f "{{.Dir}}" github.com/uudashr/gopkgs) 0.70s user 1.05s system 19% cpu 8.930 total
wc -l 0.00s user 0.00s system 0% cpu 8.927 total |
Here mine,
and
Returned package numbers not too much different for the first command, but the difference on time taken are so significant. Not sure why. But based on the discussion, is it possible there is a problem on your go/mac installation? Seems everything is slower |
Please tell me if there are any progress. Currently I have no idea. |
I'm running on Windows, and I am having some significant perf issues myself. Unfortunately, the tests that are provided are more Is there an equivalent call that can work on Windows 10? |
Not too familiar with Win 10. |
Around 200ms fast enough. |
Can you show me how many packages returned on |
Well... 6 seconds for 1325 packages is way too long. |
Would it be possible to remove the extension prompt that requires the uudashr version of gopkgs? I've reinstalled the tpng version because - performance wise - my machine agrees with it and I might consider either updating that to provide package names or writing my own. I just don't want to be prompted constant to upgrade to something that slows everything down for me: |
We need better gopkgs... not just about performance, but about the functionality. I've been experiencing this, long ago. But no more after couple fix. Not sure why it hung.. idle wake ups seems too long. Can be on vscode-go code (the caller) or on the gopkgs. Help are welcome. For now try to kill the gopkgs. @codingconcepts your runtime is Go 1.7? If yes probably I need to test using the 1.7 version. |
@codingconcepts, @klauern There have been some improvements that @uudashr has done to the the
|
Hey Ramya, sorry for the delay! I've installed the latest version of the Go extension and updated to the latest version of I'll keep an eye on things during the day and get back to you :) |
Hey @ramya-rao-a, I've had some time to play with the new version and would like to report that the general experience of using Go has definitely improved. I'm noticing much higher than normal CPU usage for I've killed the process for now but if it happens again, let me know what kind of metrics you'd like me to grab and I'll grab them for you. Cheers, Rob |
@codingconcepts Follow the wiki on Performance Issues. That should help you figure out on what's making the codehelper spin like that. |
@codingconcepts The fix @uudashr made is now out in the latest update to the Go extension (0.6.81) If you find anything while investigating the high CPU usage, please log a new issue. And thanks a lot for your patience and trying out the fixes that we are putting out. Happy Coding! |
I've found that when using the
github.com/uudashr/gopkgs
version ofgopkgs
, my CPU spikes for a long time and many on-save operations are extremely slow. If you look in your your Activity Monitor (on MacOS) or presumably Task Manager (on Windows if affected), you'll seegopkgs
whirring away and not a lot happening in vscode.I do have a pretty busy GOPATH (96 github.com subfolders etc.) but only open the top-level directory of the project I'm working on.
Since removing
github.com/uudashr/gopkgs
and replacing withgithub.com/tpng/gopkgs
my IDE has come back to life but I keep getting prompted to installgithub.com/uudashr/gopkgs
for the best experience. I can confirm that when I do heed the suggestion and re-install the uudashr version, my IDE grinds to a halt again.The text was updated successfully, but these errors were encountered: