You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As reported by @luctus, rendering a partial over thousands of iterations (aka in a layout) can cause an unexpected slowdown in build time. It's possible we're not effectively caching the compiled template through Tilt prior to final render, or some other issue. FWIW, using memoization helps, aka:
Wow, I just ran a benchmark where I loop 100,000 times and output the iteration number. Using a Ruby component + ERB template only took 1.2 seconds. Using an ERB partial took 17+ seconds! Yikes!
As reported by @luctus, rendering a partial over thousands of iterations (aka in a layout) can cause an unexpected slowdown in build time. It's possible we're not effectively caching the compiled template through Tilt prior to final render, or some other issue. FWIW, using memoization helps, aka:
The text was updated successfully, but these errors were encountered: