Add HUGO_NUMWORKERMULTIPLIER

And use that to calculate number of workers, if set, else fall back to number of logical CPUs.

Also tweak the relevant related settings to match the new setup.

Also remove the setting of `runtime.GOMAXPROCS` as this has been the default behaviour since Go 1.5.

Fixes #5814
This commit is contained in:
Bjørn Erik Pedersen 2019-04-05 10:09:22 +02:00
parent 415ca9673d
commit 87b16abd93
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F
7 changed files with 47 additions and 24 deletions

View file

@ -14,16 +14,12 @@
package main
import (
"runtime"
"os"
"github.com/gohugoio/hugo/commands"
)
func main() {
runtime.GOMAXPROCS(runtime.NumCPU())
resp := commands.Execute(os.Args[1:])
if resp.Err != nil {