4 ms·
> These idioms have a complete disregard towards performance. As they should. "Premature optimization is the root of all evil".
by Singletoned 10y ago
> These idioms have a complete disregard towards performance.
As they should. "Premature optimization is the root of all evil".
- thejaredhooper 10y agoThe actual quote is "premature emphasis on efficiency is a big mistake which may well be the source of most programming complexity and grief." The 'summarized' catch-phrase always bothers me; the choice between optimized code and inefficient code is always clear to me.
- user51442 10y agoThe "premature optimization" quote is from Knuth's Turing Award lecture: http://delivery.acm.org/10.1145/370000/361612/a1974-knuth.pdf http://delivery.acm.org/10.1145/370000/361612/a1974-knuth.pd... "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."
- user51442 10y ago..as well as "Structured Programming with go to Statements".
- d--b 10y agoWhat I am pointing out is that by his own admission, the OP is likely to _never_ think about writing the code in a more efficient manner. He has _no_ _idea_ of the difference. Premature optimization may very well be the root of all evil, but knowingly ignoring the physical constraints of a computer is not great either.