Possible Tilt rendering optimization
Closed this issue · 0 comments
jaredcwhite commented
In various experiments with SSR—but this could apply even to layouts in static rendering—I got to thinking that we should try caching Tilt template instances across resource transformations. I believe what's happening now is every single converter (ERB, Serbea, etc.) is having to compile the template for each conversion. This is slower than having a precompiled template available to use.
Here, instead of instantiating a new template no matter what, we should check a template cache first. We're actually already doing this with partials, see: