mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
hugolib: Buffer the render pages chan
This commit is contained in:
@@ -55,14 +55,14 @@ func (s siteRenderContext) renderSingletonPages() bool {
|
||||
// TODO(bep np doc
|
||||
func (s *Site) renderPages(ctx *siteRenderContext) error {
|
||||
|
||||
numWorkers := getGoMaxProcs() * 4
|
||||
|
||||
results := make(chan error)
|
||||
pages := make(chan *pageState)
|
||||
pages := make(chan *pageState, numWorkers) // buffered for performance
|
||||
errs := make(chan error)
|
||||
|
||||
go s.errorCollator(results, errs)
|
||||
|
||||
numWorkers := getGoMaxProcs() * 4
|
||||
|
||||
wg := &sync.WaitGroup{}
|
||||
|
||||
for i := 0; i < numWorkers; i++ {
|
||||
|
Reference in New Issue
Block a user