mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-26 05:30:54 +03:00
Parallelizing the largest build processes (templates, pages, indexes). Seeing 300%+ improvement of total build time.
This commit is contained in:
parent
d84f707da1
commit
3dfb475136
2 changed files with 81 additions and 53 deletions
2
main.go
2
main.go
|
@ -15,8 +15,10 @@ package main
|
|||
|
||||
import (
|
||||
"github.com/spf13/hugo/commands"
|
||||
"runtime"
|
||||
)
|
||||
|
||||
func main() {
|
||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||
commands.Execute()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue