You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@bradfitz mentioned go doc could special-case node_modules for exclusion.
If you have many client/server projects in $GOPATH, node_modules can quickly bloat and cause go doc to resolve slowly—this is especially noticeable in editors which use go doc to display inline documentation (see vscode issue).
I recursively removed my node_modules (15gb, crazy I know), here are the results before and after:
$ time go doc something
real 2m25.068s
user 0m17.772s
sys 1m45.039s
$ time go doc something
real 0m19.955s
user 0m2.499s
sys 0m9.343s
OneOfOne, snikch, Jeiwan, DeedleFake, xen0n and 9 morefdcds