Fine Tuning Java Code
This series of articles has been written in close collaboration with our partner IST-EU.com, using their Class File Inspector tool.
They present simple ways to optimise your Java code when performance is an issue, and also to dispel some myths about some techniques which are supposed to optimise code but in fact have the opposite effect.
At Liemur, we always recommend that the initial focus of software development is to ensure your program is fit for purpose (functionally, reliability and scaleable). Optimisation should only be considered as a second step. Java optimisation requires a greater understanding of the functions of the compiler and virtual machine. These articles explain what is happening and how the optimisation is being performed.
The following articles contain significant detail of the Java bytecode generated by different source code implementations. However you will not have to understand all this detail to grasp how to take advantage of these techniques as we clearly explain in accompanying text what is happening.
The series of articles is split into the following topics:
- The switch statement
- JAVA virtual machine : an 'int' oriented machine
- Attribute access vs Local access
- String addition
