There is no doubt that the “grail” of efficiency leads to abuse. 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.
Donald E. Knuth (b. 1938) American computer scientist, mathematician, academic
Essay (1974-12), “Structured Programming with go to Statements,” ACM Computing Surveys, Vol. 6
(Source)
Quotations by:
Knuth, Donald E.
Science is what we understand well enough to explain to a computer. Art is everything else we do.
Donald E. Knuth (b. 1938) American computer scientist, mathematician, academic
Essay (1996), “Foreword” to Marko Petkovsek, Herbert Wilf and Doron Zeilberger, A = B (1996)
(Source)

