typelevel / Laika

Site and E-book Generator and Customizable Text Markup Transformer for sbt, Scala and Scala.js
https://typelevel.org/Laika/
Apache License 2.0
408 stars 44 forks source link

fix perfomance regression in preview server bootstrapping #524

Closed jenshalm closed 11 months ago

jenshalm commented 11 months ago

The AST rendering capability introduced in 0.19.4 triggered the initialisation of the new feature eagerly during bootstrap causing significantly longer boot times, depending on input size.

This PR makes AST rendering lazy, so that the speed tax is only payed (once) when actually accessing an AST page for the first time. Given that many users will probably not use this functionality, it's essential that it does not affect boot times.