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

Unified Diff: client/cmd/swarming/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 | « client/cmd/isolated/common.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/cmd/swarming/common.go
diff --git a/client/cmd/swarming/common.go b/client/cmd/swarming/common.go
index 3b3c82a1efc24e119a0ebb29b2593cb99e174dfe..62f4b5a5e0b6a4b9452289c5ad7e338e807e1055 100644
--- a/client/cmd/swarming/common.go
+++ b/client/cmd/swarming/common.go
@@ -7,12 +7,17 @@ package main
import (
"errors"
"os"
+ "runtime"
"github.com/luci/luci-go/client/internal/common"
"github.com/luci/luci-go/client/internal/lhttp"
"github.com/maruel/subcommands"
)
+func init() {
+ runtime.GOMAXPROCS(runtime.NumCPU())
+}
+
type commonFlags struct {
subcommands.CommandRunBase
defaultFlags common.Flags
« no previous file with comments | « client/cmd/isolated/common.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698