![]() |
recommend book⇒Origin Of Species | |||
| by: | Charles Darwin | 978-0-451-52906-0 | paperback | |
|---|---|---|---|---|
| (born: 1809-02-12 died: 1882-04-19 at age: 73) | 978-0-679-60070-1 | hardcover | ||
| publisher: | Signet Classics | 978-0-679-64130-8 | ebook | |
| published: | 2003-09-02 | 978-1-4001-0215-0 | audio | |
| B002JF1N0A | kindle | |||
| This in one of the few books of the period that stand up to repeated readings today. | ||||
| Greyed out stores probably do not have the item in stock | ||||
Premature optimisation is the root of all evil.
~ Donald Ervin Knuth (born: 1938-01-10 age: 74)
The problem is fussing over fine detail to optimise wastes time and obscures the algorithm. Optimisation should be confined to choosing a good algorithm on the first pass. Only after the code is working should you fret over optimisation. Then, only if it needs it, determine the bottlenecks by measurement and fix only those.
Don’t do optimisations the compiler will do for you. That just clutters your code.
People often misapply the nostrum to imply that optimisation itself is evil. Only premature optimisation is.
|
|
You can get the freshest copy of this page from: | or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror) |
| http://mindprod.com/jgloss/knuth.html | J:\mindprod\jgloss\knuth.html | |
![]() | Please email your feedback for publication,
letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear wording,
broken/redirected link reports, suggestions to improve this page or comments to
Roedy Green :
| |
| Canadian Mind Products | ||
| mindprod.com IP:[65.110.21.43] | ||
| view Blog | Your face IP:[38.107.179.213] | |
| Feedback | You are visitor number 12,624. | |