Is there a way to run filter concurrently? #9802
Replies: 2 comments 3 replies
-
I haven't used this filter, but I've done something similar where I run a python program to check and reformat a protobuf payload. This also runs quite slowly, but this is for the most part because the program is run separately for each code block. I have had it on my to-do list for a long time to update the lua wrapper code so the blocks are (intelligently) joined together, the python program is run once, and then the results are (again intelligently!) split up. Might the same approach be feasible here? |
Beta Was this translation helpful? Give feedback.
-
There's nothing built-in, that would require significant changes. But one could use something like luaposix to fork out a separate process and then let image generation work in the background. Note that the diagram filter can be configured to use a cache, which should improve performance significantly after the first run. |
Beta Was this translation helpful? Give feedback.
-
I'm using a filter (https://github.com/pandoc-ext/diagram) to embed diagrams genereted by plantuml.
When I wrote a long article, which contains more than 100 diagrams, pandoc took several minutes to finish convertion (md -> docx).
I have a server with 20 CPU cores, but only one core is running.
Is it possible to run filter concurrently? Just like GNU Make with "-j" option to specify the simultaneous jobs.
Beta Was this translation helpful? Give feedback.
All reactions