The author expresses appreciation for the power of React and related frameworks in introducing the concept of materialised trees in web development, drawing parallels with Rails rendering. They delve into the significance of optimising trees for performance, discussing methods such as Russian doll caching and exploring the implications of cache misses. The author proposes a three-phase rendering process to streamline cache retrieval and enhance speed. Suggestions for applying similar optimizations to imperative templates are made, teasing a follow-up discussion. A proof-of-concept for the proposed approach is offered on Github, inviting further exploration of the topic through email or Mastodon.
https://blog.julik.nl/2024/04/batch-caching-of-trees