More computing sins are committed in the name of efficiency (without
necessarily achieving it) than for any other single reason—including blind
stupidity.
——William A. Wulf
We should forget about small efficiencies, say about 97% of the time:
premature optimization is the root of all evil.
——Donald E. Knuth
And my favorite:
We follow two rules in the matter of optimization:
Rule 1. Don't do it.
Rule 2 (for experts only). Don't do it yet—that is, not until you have a perfectly
clear and unoptimized solution.
——M. A. Jackson
Rule 1. Don't do it.
Rule 2 (for experts only). Don't do it yet—that is, not until you have a perfectly
clear and unoptimized solution.
——M. A. Jackson
I have always tried to do as much as possible to make my programs faster. Even small "things" like setting the size of a new instance of ArrayList, or creating an array with the right size when calling List.toArray(), using buffered streams and so on are part of my "toolbox".
And now when "performance is all around" and there are performance tests, performance indicators, performance gurus, performance standards I came to this wiki page:
http://wiki.eclipse.org/index.php/Performance
The good thing about wikis is that everyone can improve them. So check it out, give your comments and share you experience.
"Performance is all around"
No comments:
Post a Comment