From: spf13 Date: Sat, 30 Aug 2014 05:15:20 +0000 (-0400) Subject: Adjusting the number of go routines to build the pages in to 4*GOMAXPROCS (from 2... X-Git-Tag: v0.12~8 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=242d6b4e6b44a327ce56c5276d040555ef146d91;p=brevno-suite%2Fhugo Adjusting the number of go routines to build the pages in to 4*GOMAXPROCS (from 2) for faster rendering. --- diff --git a/hugolib/site.go b/hugolib/site.go index c0e0bb07..104322bf 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -334,7 +334,7 @@ func (s *Site) CreatePages() error { wg := &sync.WaitGroup{} - for i := 0; i < procs*2; i++ { + for i := 0; i < procs*4; i++ { wg.Add(1) go pageRenderer(s, input, results, wg) }