Wirth's Law
Updated 2026-08-05
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.
Introduction
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/1Practice this model in one real situation:
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.
- en.wikipedia.orghttps://en.wikipedia.org/wiki/Wirth's_lawverified
account_treeGenealogyexpand_more
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS