> Not good...the keyword being "premature", meaning "untimely, too soon,
> hasty" in this context.
[quoted text clipped - 4 lines]
> and/or memory-consumption-reducing architecture, design, algorithms and
> data structures at the earliest possible stage.
Donald Knuth said, paraphrasing Hoare[1],
* "We should forget about small efficiencies, say about 97% of the
time: premature optimization is the root of all evil." (Knuth, Donald.
Structured Programming with go to Statements, ACM Journal Computing
Surveys, Vol 6, No. 4, Dec. 1974. p.268.)
http://en.wikipedia.org/wiki/Optimization_(computer_science)
Actually, he's talking about *small* efficiencies. Just thought I'd post
the quote!
-Thufir
Arne Vajhøj - 01 May 2008 00:31 GMT
> Donald Knuth said, paraphrasing Hoare[1],
>
[quoted text clipped - 7 lines]
> Actually, he's talking about *small* efficiencies. Just thought I'd post
> the quote!
That is what it is all about.
Programmers taking 4 nice reachable lines of code that work
and replace them with 40 unreadable lines with 3 bugs to achieve
a 5% speed increase of that code which because that code only
takes 0.1% of total time result in a total performance improvement
of 0.0005% and cost the company tens of thousands of dollars to
find and fix the bugs !
Arne