cascade: The Bits Everyone Gets Wrong — Performance article on cascade

cascade: The Bits Everyone Gets Wrong

Covers the subtle behaviours that pass every test and then break in production. Written after three production incidents with the same root cause.

Performance work is mostly the discipline of removing work. The hard part is not the profile — it is convincing everyone that the problem is worth solving before you have solved it.

Accessibility regressions are invisible in code review and obvious to users. That asymmetry is why automated checks should run in CI, not in a quarterly audit.

The thing nobody tells you about cascade is that the specification is short and the implementation history is not. Every behaviour you rely on was added for a reason that no longer applies to your code.

We spent a month measuring before changing anything. The surprising result was that the bottleneck was not cascade at all — it was how the data reached the code that used it. Once we moved the work, the numbers fell by an order of magnitude without a single micro-optimisation.

Start with the smallest thing that could possibly work. Not because it is the final answer, but because it gives you something to measure against, and measuring is how you find out whether the clever version is worth it.