Skip to content
quotesby

About this quote

What does it mean?
Wall claims optimizations are a form of cheating that eventually fail.
In plain terms
Optimizations can break things and are risky.
What can you take from it?
Prioritize correctness over premature optimization.

Where it applies

  • performance tuning
  • code refactoring

Putting it to work

  • benchmark before optimizing
  • write clear tests

Questions to consider

  • When is optimization justified?
  • How to balance speed and reliability?

Another view

Some optimizations are essential for practical performance.

More from Larry Wall

  1. What you'll need most is courage. It is not an easy path that you've set your foot upon.

    Permalink to quote #314
  2. Many computer scientists have fallen into the trap of trying to define languages like George Orwell's Newspeak, in which it is impossible to think bad thoughts…

    Permalink to quote #313
  3. If ease of use was the highest goal, we'd all be driving golf carts.

    Permalink to quote #312

Related quotes

  1. In computer science, it is said that premature optimization is the root of all evil.

    Larry WallLarry Wall quote #285
  2. Marcia: Lovely. Yeah, go the rock chick. Yeah, um, you've been so great through this competition. Um, we've said no, you've come back blah blah blah blah. (sic…

    Hayley JensenHayley Jensen quote #4
  3. I like to take chances, and that's the key to comedy -- dancing like an idiot but doing it with wild abandon.

    Megan MullallyMegan Mullally quote #8