Performance issue: asciidoctor-web-pdf is almost 3 times slower than asciidoctor-pdf #590
Replies: 8 comments
-
A "batch mode" would probably improve the performance but nobody has been working on it: #99 |
Beta Was this translation helpful? Give feedback.
-
Not very sure, what/how to use 'batch mode' in my case. Pasting my minimal script used in azure pipeline. Kindly suggest, by any means I can apply 'batch mode' to improve the overall conversion process?
|
Beta Was this translation helpful? Give feedback.
-
The batch mode (not implemented) will use the same Chrome headless instance. So instead of launching a new Chrome headless instance per document, we will reuse the same instance. What you will need to do is to pass a list documents:
But again the batch mode feature is not implemented. Having said that, you can still do this change since you will run less commands but overall the performance should be the same (or a bit better). |
Beta Was this translation helpful? Give feedback.
-
Don't think it'll be feasible to write 400 file names with different paths as suggested way. Some other way around would be good? |
Beta Was this translation helpful? Give feedback.
-
Any update please? |
Beta Was this translation helpful? Give feedback.
-
Please don't do that, this is an open source projet, nobody is paid to answer within 48 hours. If nobody gives update then there's no update. |
Beta Was this translation helpful? Give feedback.
-
Yes, you are correct. I shouldn't have done that. Will take care from next time. Apologies. |
Beta Was this translation helpful? Give feedback.
-
No worries and thanks for acknowledging the problem.
Indeed, with this approach you will configure one output directory:
I'm not a PowerShell expert but it seems that you have one destination folder per module, right? foreach($mod in $adocFiles.modules)
{
$dest = "$(targetDir)" + $mod.destination
$files = $mod.source | % {join-path "$(sourceDir)" $_ }
$filesList = $files -join ' '
asciidoctor-web-pdf $filesList --destination-dir=$dest -a stem --trace
} So instead of running Not sure if PowerShell also has this limitation but you might need to find a workaround. |
Beta Was this translation helpful? Give feedback.
-
#531 - Using the same steps, I see asciidoctor-web-pdf is almost 3 times slower than asciidoctor-pdf. Is it correct for in general or I need to do something to improve. Kindly suggest.
PS:
Beta Was this translation helpful? Give feedback.
All reactions