← Graph

Extract a partial only when it earns its keep

takeaway 1 connections

From Stephen Margheim's panel contribution: because Rails has to find and compile each partial file, introducing a single partial made an index-view endpoint 40% slower in his benchmarks. Applications with 3–6 partial layers are common and kill performance. Fix slow queries but don't lose sight of partial depth as an optimization target.

type
lesson-learned
takeaway Extract a partial only when it earns its keep
from_talk
Stephen's 40%-slowdown benchmark lesson.

Provenance

Created in
Performance Panel at wroclove.rb 2024 2026-04-17 23:20