Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M5679

Wirth's Law

Wirth's Law
SystemsHigh supportSystems Theory
Included
account_tree

Updated 2026-08-05

Loading revision record…

Summary

Wirth's law observes that software gets slower more quickly than hardware gets faster, because bloated code consumes the gains from improved processors.

Definition

Attributed to Niklaus Wirth, the observation states that software grows slower and heavier faster than hardware improves, so user experience often fails to benefit from faster machines. The mechanism is that developers rely on hardware headroom rather than optimizing, and each layer of abstraction and dependency adds overhead. The core claim is that performance must be actively defended rather than assumed. The qualification is that the trade-off is often deliberate, since development speed and features may matter more than runtime efficiency.

How to use

- Use Performance Budget: Set an explicit ceiling on size, memory, or latency before adding features. - Use Subtraction Audit: Regularly remove unused features and dependencies rather than only adding. - Use Bloat Suspicion: Treat the assumption that faster hardware will fix slowness as a warning sign.

Mechanism

When hardware capacity is expected to grow, the pressure to optimize code falls, so developers trade efficiency for convenience through abstractions and dependencies. Each layer adds overhead, and the accumulated weight grows at least as fast as the hardware improves. Because the cost is paid by users rather than by the developers who incur it, the drift continues unless a deliberate budget constrains it.

Practice

In progress 0/1

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

Cases

  • Applications routinely grow in size and memory use with each release while hardware improves.
  • New operating systems run sluggishly on machines that once felt perfectly fast.
  • Excessive microservice decomposition adds network and coordination overhead that outweighs its benefits.

Common pitfalls

  • Assuming a faster machine is the universal fix leaves the underlying inefficiency in place.
  • Treating Wirth's law as unrelated to other bloat observations fragments the same insight.
  • Optimizing runtime while ignoring development cost can waste effort where speed is not valued.
Sources

Source support: Explicit

References currently contain only Wikipedia links; primary sources still need review.

  • link
    en.wikipedia.orghttps://en.wikipedia.org/wiki/Wirth's_lawZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS