Performance: cache rendered Markdown and highlighted files by content hash issue #14 closed: completed andymccall opened this · 0 comments
closed by change 8d194f035eb6 ·
andymccall set labels performance ·
closed by change 8d194f035eb6 ·
andymccall set labels performance ·
Rendering Markdown and highlighting files with syntect happens on every page view. Both depend only on the content (and, for Markdown, the link bases), so cache the output keyed by the content's hash, bounded by memory, and measure the heaviest pages on Earth before and after.