“We should forget about small inefficiencies, say about 97% of the time: premature optimization is the root of all evil.”
~ Donald Ervin Knuth (born: 1938-01-10 age: 71)
“A fast program is not as important as a correct one.”
~ Steve McConnell
“The only result of optimization you can usually be sure of without measuring performance is that you’ve made your code harder to read.”
~ Steve McConnell
Jackson’s rules of Optimization:~ M.A. Jackson
- Don’t do it.
- (For experts only) Don’t do it yet — that is until you have a perfectly clear and unoptimized solution.
You can “speed up” a program by wasting even more cycles with progress bars and animated spinners — the approach pioneered by Microsoft.
If the program behaves what appears to behave like a reluctant or lazy human, it will be perceived as slow. If a program appears industrious, it can actually be a pig and get away with it.
In GUIs, what most often counts most is some sort of rapid acknowledgement feedback not the total elapsed time of some process.
![]() |
recommend book⇒Code Complete : A Practical Handbook of Software Construction | |
| paperback | ||
|---|---|---|
| ISBN13: | 978-1-55615-484-3 | |
| ISBN10: | 1-55615-484-4 | |
| publisher: | Microsoft Press | |
| published: | 1993-05-14 | |
| by: | Steve McConnell | |
| Gives lots of practical advice on optimising. He talks mostly about C with examples in Fortran, Pascal, Basic and Ada. He doesn’t talk about Java. It didn’t exist when the book was written. | ||
![]() |
recommend book⇒Java Performance Tuning, 2nd edition | |
| paperback | ||
|---|---|---|
| ISBN13: | 978-0-596-00377-7 | |
| ISBN10: | 0-596-00377-3 | |
| publisher: | O’Reilly | |
| published: | 2003-01 | |
| by: | Jack Shirazi | |
| Recommended. O’Reilly Safari book available to read online for a fee. Includes tuning J2EE, JDBC, servlets and JSPs, and EJBs. Read more about it. Make sure you get the second edition (or later). | ||
![]() |
recommend book⇒Java Platform Performance: Strategies and Tactics | |
| paperback | ||
|---|---|---|
| ISBN13: | 978-0-201-70969-8 | |
| ISBN10: | 0-201-70969-4 | |
| publisher: | Prentice Hall | |
| published: | 2000-06-10 | |
| by: | Steve Wilson, Jeff Kesselman | |
![]() |
recommend book⇒Enterprise Java Performance | |
| paperback | ||
|---|---|---|
| ISBN13: | 978-0-13-017296-9 | |
| ISBN10: | 0-13-017296-0 | |
| publisher: | Prentice Hall | |
| published: | 2000-08 | |
| by: | Steven L. Halter, Steven J. Munroe | |
![]() |
recommend book⇒Sun Performance and Tuning: Java and the Internet (2nd Edition) | |
| paperback | ||
|---|---|---|
| ISBN13: | 978-0-13-095249-3 | |
| ISBN10: | 0-13-095249-4 | |
| publisher: | Prentice Hall | |
| published: | 1998-04-17 | |
| by: | Adrian Cockcroft, Richard Pettit, Sun Microsystems | |
![]() |
recommend book⇒Java ™ Puzzlers : Traps, Pitfalls, and Corner Cases | |
| paperback | ||
|---|---|---|
| ISBN13: | 978-0-321-33678-1 | |
| ISBN10: | 0-321-33678-X | |
| publisher: | Addison-Wesley | |
| published: | 2005-07-04 | |
| by: | Joshua Bloch, Neal Gafter | |
| A set of 95 short programs that give astonishing results. When you understand them, you understand the quirkier features of Java. Bloch wrote much of the JDK class library. He also wrote the Effective Java Programming Language Guide | ||
![]() |
recommend book⇒Effective Java Programming Language Guide | ||
| paperback | kindle | ||
|---|---|---|---|
| ISBN13: | 978-0-201-31005-4 | B000OZ0N5I | |
| ISBN10: | 0-201-31005-8 | ||
| publisher: | Prentice Hall | ||
| published: | 2001-06-15 | ||
| by: | Joshua Bloch | ||
| No design patterns, just generic advice on good Java programming style. | |||
![]() |
and suggestions to improve this page to Roedy Green : | ||
| Canadian Mind Products | |||
| mindprod.com IP:[65.110.21.43] | |||
| Your face IP:[38.103.63.58] | |||
| You are visitor number 9,736. | |||
| You can get a fresh copy of this page from: | or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror) | ||
| http://mindprod.com/jgloss/optimising.html | J:\mindprod\jgloss\optimising.html | ||