mirror of
https://github.com/golang/go
synced 2024-09-30 22:38:33 -06:00
87f95283ac
If $GOPATH was large, or $GOPATH was $HOME and $HOME/src had many files, the unbounded concurrency in loadPkgIndex/loadPkg could make the operating system unhappy with so many threads. (sigh once again for no async file IO and needing threads for file operations) In addition, don't call go/build.Context.Import on directories that we've already determined to have no go files in them. It's just a waste of time. Makes it about 3x faster on my machine with hot caches and a big $HOME/src. Fixes golang/go#7731 LGTM=iant, adg R=golang-codereviews, iant, adg CC=david.crawshaw, golang-codereviews https://golang.org/cl/85670044 |
||
---|---|---|
.. | ||
fix_test.go | ||
fix.go | ||
imports.go | ||
mkindex.go | ||
mkstdlib.go | ||
sortimports_compat.go | ||
sortimports.go | ||
zstdlib.go |