-
I appreciate being able to included mermaid diagrams in my markdown, but it takes about 2 seconds per diagram per conversion. It's not the end of the world, but annoyingly slow once I have a few diagrams. Is this typical? For example, it takes over 10s to generate this html from this markdown.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
BTW: Anyone ever had SVG files working with odt output format? |
Beta Was this translation helpful? Give feedback.
-
Yes, using mermaid this way is slow. The reason is that the filter has to fire up a whole browser each time it converts a diagram, and that takes its time. I don't know which exact tool you're using, but I get very similar times with the |
Beta Was this translation helpful? Give feedback.
-
Hi Albert, I use https://github.com/raghur/mermaid-filter . It doesn't look to support a cache option, perhaps I should give diagram.lua a try!
…On 8/13/24 04:12, Albert Krewinkel wrote:
Yes, using mermaid this way is slow. The reason is that the filter has to fire up a whole browser each time it converts a diagram, and that takes its time. I don't know which exact tool you're using, but I get very similar times with the |diagram.lua| filter. Enabling caching for that filter makes subsequent runs a lot faster, maybe your filter of choice has a similar option?
—
Reply to this email directly, view it on GitHub <#10081 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAERWTTA65GSKL3AD7N6G5DZRG5YNAVCNFSM6AAAAABMMYDZCGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMZSGI4DIOI>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Yes, using mermaid this way is slow. The reason is that the filter has to fire up a whole browser each time it converts a diagram, and that takes its time. I don't know which exact tool you're using, but I get very similar times with the
diagram.lua
filter. Enabling caching for that filter makes subsequent runs a lot faster, maybe your filter of choice has a similar option?