Print Preview Rendering Speed is Very, Very Slow

Viewed 22

I have a large document (244 pages, 330KB Markdown, 18KB CSS) and print preview rendering is incredibly slow. On my M3 MacBook Air with 24GB of RAM it takes 33 minutes to render, using approximately 12.5% of my CPU (according to iStatMenus). Is this expected, or unusual?

1 Answers

This seems excessive, but rendering large documents is definitely slow. A document like that usually takes ~15m on my M5.

Marked 3 can't use the built-in print system, as with the WebKit 1 that Marked uses it crashes immediately when setting up print headers. So I have to use a hidden web view and extensive JavaScript to paginate the document, which is a very complex process and takes considerable time on large documents.