![]() |
|
|||||||||||||||||
Optimization of JavaThis Optimization of Java is a collection of optimization techniques used in the implementation of the Java programming language.
Reduce number of object creationsIn Java, object creations are expensive compared with other compiled object-oriented programming language. This is because object creation involves:
Eliminate simple methods such as accessor methodSince the Java compiler cannot be completely sure about which method will be called before runtime due to dynamic class loading, each method call involves looking up a method in a virtual table. Use of small and simple methods that are called frequently can be quite expensive. If possible, inline code of such method directly at the point of call. However, the Java HotSpot VM, introduced in J2SE 1.3, supports method inlining. Any code sections recognized as "hotspots" by this VM will be optimized including inlining of method calls, where it can be done safely. MythsThere are some myths in performance tuning of Java programs.
External linksThe contents of this article are licensed from Wikipedia.org under the GNU Free Documentation License.
How to see transparent copy 01-04-2007 01:21:04 |
|





