hans.gerwitz

Premature optimization is the root of all evil

Posted on August 12th, 2004

“Premature opti­mization is the root of all evil.” is a popular quote with myste­rious origins. It is widely attributed to Donald Knuth, who appar­ently used it in Structured Program with goto Statements but later credits Tony Hoare.

Hoare, however, did not claim it when I queried him in January of 2004:

Dear Hans,

I’m sorry I have no recol­lection how this quotation came about.? I might have attributed it to Edsger Dijkstra.

I think it would be fair for you assume it is common culture or folklore.

Tony.

Bruce Eckel also credits Dijkstra. Now that would be ironic, since the widely-​​attributed first use by Knuth was written as a rebuttal to Dijkstra’s Go To Statement Considered Harmful.

View Comments to “Premature optimization is the root of all evil”

  1. Premature optimization is the root of all evil « The Lumber Room Says:
    […] Hans Gerwitz, and the post is still up.] Translation: “No, I didn’t say it, and Dijkstra is the guy who usually says such […]
  2. shreevatsa Says:
    Excellent. Thanks for emailing him!
  3. [flame]static vs. not-static - Strona 5 | hilpers Says:
    […] pami?ta, ale m?g? > pochodzi? od Dijkstry. Poprawka: to by? mail Hoare’a do Hansa Gerwitza. http://hans.gerwitz.com/2004/08/12/p…-all-evil.html — Daniel ‘Nathell’ Janus, moveat, http://korpus.pl/~nathell Windows: A thirty-​​two bit extension […]

Leave a Reply

blog comments powered by Disqus