December 1974

Knuth: premature optimization

Donald Knuth's paper Structured Programming with go to Statements coins the line every performance tweaker quotes back at themselves.

Quote

Premature optimization is the root of all evil (or at least most of it) in programming.

What it was for

Donald KnuthKnuth wasn't against optimization — he argued for profiling first. The quote is misused to dismiss all early performance work, but the original point was about clarity before micro-benchmarks.

People

  • Donald Knuthauthor

Why it's here

The most repeated performance advice in software engineering, often without context.

Why it mattered

It reframed optimization as a measured second step, not a design default.

What it solved

TeamsMicrosoft Teams — chat, video calls, and Office integration for workplace collaboration. wasted effort tuning code paths before knowing what was slow.

Media

  • Donald Knuth
    ImageDonald Knuth

    Alex Handy, CC BY-SA 2.0, via Wikimedia Commons

Related