> On Apr 22, 2019, at 8:21 AM, Joel Dueck <[email protected]> wrote:
> 
> Would it be feasible to add some optional parallelism to Pollen, either as an 
> argument to raco pollen render or as an alternate form of render-batch? 

`raco pollen setup` operates in parallel, to a maximum of however many cores 
are on your machine (= `(processor-count)`) Run that before `raco pollen 
render`, and it's usually faster than running `raco pollen render` alone.

`raco pollen setup` only precompiles & caches the `doc` & `metas`. At one point 
I looked into parallelizing the rest of the render (that is, putting `doc` and 
`metas` into a template and writing output). IIRC what I discovered is that 
part is relatively fast. Also, within a project, rendered pages can depend 
intricately on each other (templates and preprocessor files etc). So if you do 
your parallel render in the wrong order, you can end up being slower (because 
you're re-rendering work you don't need to).  

Still, parallel rendering isn't hard to implement. So if `raco pollen setup` is 
underwhelming, I can take another look at it.

-- 
You received this message because you are subscribed to the Google Groups 
"Pollen" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to