mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-26 13:40:38 +03:00
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:
parent
415ca9673d
commit
87b16abd93
7 changed files with 47 additions and 24 deletions
4
main.go
4
main.go
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue