Answer the question
In order to leave comments, you need to log in
Jade renderFile run in parallel with async.parallel?
Hello!
Task: you need to render 5-10 .jade files, and pass the resulting html in the callback.
Consistently rendering takes a lot of time.
I tried to drive all renders in async.parallel, but nothing changed. The files are also re-rendered sequentially.
Actually the question is:
Who faced this, and how to parallelize the rendering of templates?
Answer the question
In order to leave comments, you need to log in
Greetings.
That's right, it won't be faster. JS is asynchronous but not multi-threaded. Use child_process . Give child processes tasks.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question