summaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorspf13 <steve.francia@gmail.com>2014-03-05 19:07:39 -0500
committerspf13 <steve.francia@gmail.com>2014-03-05 23:48:42 -0500
commit3dfb4751366aadfec9056ca3bde4215067ee4a26 (patch)
tree3f8ee7213726eaa95d11264a35ca95373c34f8ab /main.go
parentd84f707da1d46b7334ff10db2443ac17a17bbff2 (diff)
Parallelizing the largest build processes (templates, pages, indexes). Seeing 300%+ improvement of total build time.
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.go b/main.go
index 24a1594f9..70f88e5af 100644
--- a/main.go
+++ b/main.go
@@ -15,8 +15,10 @@ package main
import (
"github.com/spf13/hugo/commands"
+ "runtime"
)
func main() {
+ runtime.GOMAXPROCS(runtime.NumCPU())
commands.Execute()
}