Premature optimisation is the root of all evil.
~ Donald Ervin Knuth (1938-01-10 age:80)
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.
This page is posted
Optional Replicator mirror
Please read the feedback from other visitors, or send your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.
Your face IP:[188.8.131.52]
You are visitor number|