Bruce Eckel's Thinking in Java Contents | Prev | Next

D: Performance

This appendix was contributed by and used with the permission of Joe Sharp, consultant (SharpJoe@aol.com).

The Java language emphasizes accurate, reliable behavior at the expense of performance. This is reflected in features such as automatic garbage collection, rigorous runtime checking, complete byte code checking, and conservative runtime synchronization. Availability on a wide choice of platforms leads, at present, to an interpreted virtual machine that further handicaps performance. About performance, Steve McConnell [16] quoted: “Complete it first, and then perfect it. The part that needs to be perfect is usually small.” This appendix will aid you in locating and optimizing that “part that needs to be perfect.”

Contents | Prev | Next