Java ME Optimization
There’s a great new article on the Nokia Forum Wiki that describes how to optimisze Java ME. The article is written by Sergio Estevao who also has his own blog with some great Java ME tips and tutorials.
As with optimisation on any platform, it’s best not to blindly implement all optimisations. Optimisations often hinder code readability/maintainability and it’s best to only use them if you find they are really needed. i.e. Unless it impacts your overall design, code first and optimise later where you measure it is required. Usually, the 80/20 rule applies and you only have to optimise 20% (often much less) of the code to get a great saving in performance.
Optimisation under Java ME is particularly tricky as some techniques offer widely varying gains when you go from phone to phone that has a different Java VM. In fact, it’s even more tricky than that when OEMs decide to change their platform JVM. However, there are some bottlenecks, for example manipulating RMS, that seem to be poorly implemented on the majority of platforms.
Related Articles: