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
“Structured Programming with go to Statements,” ACM Journal Computing Surveys (Dec 1974)