Use an concurrency-limiting semaphore to reduce I/O parallelism in Import. Also, start the producer in a new goroutine so that it runs in parallel with the consumer. Paradoxically, this reduces the peak number of goroutines. Also, in buildutil.ForEachPackage, make the concurrency limiting semaphore global, since I/O parallelism is a process-wide resource. Change-Id: I282b717c50603361826e5675077c9f464c874132 Reviewed-on: https://go-review.googlesource.com/18215 Reviewed-by: Michael Matloob <matloob@golang.org> |
||
|---|---|---|
| .. | ||
| eg | ||
| importgraph | ||
| rename | ||
| satisfy | ||
| README | ||
README
golang.org/x/tools/refactor: libraries for refactoring tools.