Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: client/cmd/isolate/common.go

Issue 1149823004: Set GOMAXPROCS=runtime.NumCPU(). (Closed) Base URL: git@github.com:luci/luci-go@4_drop_tid
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | client/cmd/isolated/common.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/cmd/isolate/common.go
diff --git a/client/cmd/isolate/common.go b/client/cmd/isolate/common.go
index eee4e93be8200378d8c3fd675ece3e61b8cebc50..a8a28b1a66d47fdc1bcd1afab727f23634e66cdf 100644
--- a/client/cmd/isolate/common.go
+++ b/client/cmd/isolate/common.go
@@ -8,6 +8,7 @@ import (
"errors"
"flag"
"fmt"
+ "runtime"
"github.com/luci/luci-go/client/internal/common"
"github.com/luci/luci-go/client/isolate"
@@ -15,6 +16,10 @@ import (
"github.com/maruel/subcommands"
)
+func init() {
+ runtime.GOMAXPROCS(runtime.NumCPU())
+}
+
type commonFlags struct {
subcommands.CommandRunBase
defaultFlags common.Flags
« no previous file with comments | « no previous file | client/cmd/isolated/common.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698