“Premature optimization is the root of all evil.”

Quote due to Donald Knuth, "Structured Programming with Goto Statements" http://pplab.snu.ac.kr/courses/adv_pl05/papers/p261-knuth.pdf, Computing Surveys 6:4 (December 1974), pp. 261–301, §1. Knuth refers to it as "Hoare's Dictum" 15 years later in "The Errors of TeX", Software—Practice & Experience 19:7 (July 1989), pp. 607–685. However, the attribution to Hoare is doubtful. http://shreevatsa.wordpress.com/2008/05/16/premature-optimization-is-the-root-of-all-evil/
Attributed

Adopted from Wikiquote. Last update June 3, 2021. History

Help us to complete the source, original and additional information

Do you have more details about the quote "Premature optimization is the root of all evil." by C. A. R. Hoare?
C. A. R. Hoare photo
C. A. R. Hoare 16
British computer scientist 1934

Related quotes

Donald Ervin Knuth photo

“The real problem is that programmers have spent far too much time worrying about efficiency in the wrong places and at the wrong times; premature optimization is the root of all evil (or at least most of it) in programming.”

Programmers waste enormous amounts of time thinking about, or worrying about, the speed of noncritical parts of their programs, and these attempts at efficiency actually have a strong negative impact when debugging and maintenance are considered. We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil. Yet we should not pass up our opportunities in that critical 3%.
Variant in Knuth, "Structured Programming with Goto Statements" http://pplab.snu.ac.kr/courses/adv_pl05/papers/p261-knuth.pdf. Computing Surveys 6:4 (December 1974), pp. 261–301, §1.
Knuth refers to this as "Hoare's Dictum" 15 years later in "The Errors of Tex", Software—Practice & Experience 19:7 (July 1989), pp. 607–685. However, the attribution to C. A. R. Hoare is doubtful. http://shreevatsa.wordpress.com/2008/05/16/premature-optimization-is-the-root-of-all-evil/
All three of these papers are reprinted in Knuth, Literate Programming, 1992, Center for the Study of Language and Information ISBN 0937073806
Source: Computer Programming as an Art (1974), p. 671

Robert T. Kiyosaki photo

“The love of money is the root of all evil."

The lack of money is the root of all evil.”

Robert T. Kiyosaki (1947) American finance author , investor

Source: Rich Dad, Poor Dad: What the Rich Teach Their Children About Money That the Poor and Middle Class Don't

George Bernard Shaw photo
Mark Twain photo

“The lack of money is the root of all evil.”

Mark Twain (1835–1910) American author and humorist

This appears in Twain's posthumous The Refuge of the Derelicts (1905), but it had already been published by other writers.
The earliest citation found in Google Books is a 1872 article by Richard Bowker: "Our Crime Against Crimes" https://books.google.com/books?id=YZgBAAAAYAAJ&pg=PA68&dq=The+lack+of+money+is+the+root+of+all+evil&hl=en&sa=X&ved=0ahUKEwjWi5DE1crLAhUI3mMKHeSdB0YQ6AEIKzAB#v=onepage&q=%22lack%20of%20money%22&f=false, in The Herald of Health, vol. 19 no. 2, New York: Wood & Holbrook, February 1872. The saying is placed within quotation marks, perhaps indicating that it was already well-known.
A precursor is found in an article from 1859 https://books.google.com/books?id=gpdEAQAAMAAJ&pg=PA209&dq=The+lack+of+money+is+the+root+of+all+evil&hl=en&sa=X&ved=0ahUKEwjWi5DE1crLAhUI3mMKHeSdB0YQ6AEINTAD#v=onepage&q=%22lack%20of%20gold%22&f=false: It is very well to repeat, parrot-like, the old axiom that “the love of gold is the root of all evil;” but it is very certain that in truth—the lack of gold is the great incentive to crime.
Disputed

Plato photo

“Ignorance, the root and stem of all evil.”

Plato (-427–-347 BC) Classical Greek philosopher

Attributed to Plato on quotes sites but never sourced.
Disputed

Douglas Hofstadter photo

“Irrationality is the square root of all evil.”

Douglas Hofstadter (1945) American professor of cognitive science

"Irrationality is the Square Root of All Evil" (Sep, 1983) Scientific American 249 (3) article reprinted in Metamagical Themas (1985)

Isaac Asimov photo

“If the love of money is the root of all evil, the need of money is most certainly the root of all despair.”

Source: Short fiction, The Early Asimov Book One (1972), Half-Breed (p. 160)

Sören Kierkegaard photo
F. H. Bradley photo

“Of Optimism I have said that "The world is the best of all possible worlds, and everything in it is a necessary evil."”

Appearance and Reality, preface http://books.google.com/books?id=EtgtAAAAYAAJ&q=%22of+optimism+I+have+said+that+The+world+is+the+best+of+all+possible+worlds+and+everything+in+it+is+a+necessary+evil%22&pg=PR14#v=onepage (1893).

Sören Kierkegaard photo

“Boredom is the root of all evil - the despairing refusal to be oneself.”

Sören Kierkegaard (1813–1855) Danish philosopher and theologian, founder of Existentialism

Related topics