summaryrefslogtreecommitdiff
path: root/ui/build/config.go
diff options
context:
space:
mode:
authorPark Ju Hyung <qkrwngud825@gmail.com>2020-10-31 19:15:24 +0900
committeralk3pInjection <webmaster@raspii.tech>2021-10-15 13:15:50 +0800
commit8e0a9da5f4202b794f082f4a97c5cc2a6de0101a (patch)
tree8ce90b13881ffc5f5bb4cf7ba3d3d93446ee74d3 /ui/build/config.go
parent66b443184bf147200f92387bb09ea04822781578 (diff)
ui: Pass the exact CPU thread count to -jlineage-18.1
Once the number of jobs exceeds the total CPU thread count, the task scheduler starts to inflict excessive context switches, slowing the entire operation down. Change-Id: Iff8829f3932e3ceb5eb78151b616991187a27246 Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
Diffstat (limited to 'ui/build/config.go')
-rw-r--r--ui/build/config.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/build/config.go b/ui/build/config.go
index 7f28d3af5..7f55fe360 100644
--- a/ui/build/config.go
+++ b/ui/build/config.go
@@ -102,7 +102,7 @@ func NewConfig(ctx Context, args ...string) Config {
}
// Sane default matching ninja
- ret.parallel = runtime.NumCPU() + 2
+ ret.parallel = runtime.NumCPU()
ret.keepGoing = 1
ret.totalRAM = detectTotalRAM(ctx)