diff options
author | Park Ju Hyung <qkrwngud825@gmail.com> | 2020-10-31 19:15:24 +0900 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2021-10-15 13:15:50 +0800 |
commit | 8e0a9da5f4202b794f082f4a97c5cc2a6de0101a (patch) | |
tree | 8ce90b13881ffc5f5bb4cf7ba3d3d93446ee74d3 | |
parent | 66b443184bf147200f92387bb09ea04822781578 (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>
-rw-r--r-- | ui/build/config.go | 2 |
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) |