]> Cypherpunks repositories - gostls13.git/commit
cmd/api: run half as many go list calls in parallel
authorHeschi Kreinick <heschi@google.com>
Wed, 8 Dec 2021 20:29:12 +0000 (15:29 -0500)
committerHeschi Kreinick <heschi@google.com>
Wed, 8 Dec 2021 21:24:34 +0000 (21:24 +0000)
commitbb9b20a15d637667614ec4a312f216bd4c67b76a
tree67c148321149e56bbd10962cacea7afbb52e408a
parent9e29dd42df18141506dcfc2513e8a653564fdbf1
cmd/api: run half as many go list calls in parallel

We currently run one 'go list' invocation per GOMAXPROC. Since the go
command uses memory and has its own internal parallelism, that's
unlikely to be an efficient use of resources. Run half as many. I
suspect that's still too many but this should fix our OOMs.

For #49957.

Change-Id: Id06b6e0f0d96387a2a050e400f38bde6ba71aa60
Reviewed-on: https://go-review.googlesource.com/c/go/+/370376
Trust: Heschi Kreinick <heschi@google.com>
Run-TryBot: Heschi Kreinick <heschi@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/cmd/api/goapi.go