mirror of https://github.com/golang/go.git
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 |
||
|---|---|---|
| astutil | ||
| blog | ||
| cmd | ||
| cover | ||
| dashboard | ||
| go | ||
| godoc | ||
| imports | ||
| oracle | ||
| playground | ||
| present | ||
| refactor | ||
| .hgignore | ||
| AUTHORS | ||
| CONTRIBUTORS | ||
| LICENSE | ||
| PATENTS | ||
| README | ||
| codereview.cfg | ||
README
This subrepository holds the source for various packages and tools that support the Go programming language. Some of the tools, godoc and vet for example, are included in binary Go distributions. Others, including the Go oracle and the test coverage tool, can be fetched with "go get". Packages include a type-checker for Go and an implementation of the Static Single Assignment form (SSA) representation for Go programs. To submit changes to this repository, see http://golang.org/doc/contribute.html.