mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 22:16:02 +00:00
Adjusting the number of go routines to build the pages in to 4*GOMAXPROCS (from 2) for faster rendering.
This commit is contained in:
1 parent
47c91a4ca2
commit
242d6b4e6b
1 file changed
+1
-1
+1
-1
@@ -334,7 +334,7 @@ func (s *Site) CreatePages() error {
|
|||||||
|
|
||||||
wg := &sync.WaitGroup{}
|
wg := &sync.WaitGroup{}
|
||||||
|
|
||||||
for i := 0; i < procs*2; i++ {
|
for i := 0; i < procs*4; i++ {
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
go pageRenderer(s, input, results, wg)
|
go pageRenderer(s, input, results, wg)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user