From 3dfb4751366aadfec9056ca3bde4215067ee4a26 Mon Sep 17 00:00:00 2001 From: spf13 Date: Wed, 5 Mar 2014 19:07:39 -0500 Subject: Parallelizing the largest build processes (templates, pages, indexes). Seeing 300%+ improvement of total build time. --- main.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.go') 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() } -- cgit v1.2.3