Method Inlining

Property settings

This optimization is turned ON by default.
In the property file,
OPT.METHOD.INLINING=ON turns on this optimization
OPT.METHOD.INLINING=OFF turns off this optimization

The current implementation of method inlining is designed to minimize the resulting JAR size. It can also significantly improve run-time performance.

Some handsets, including handsets embedding Sun's HotSpot J2ME virtual machines, are known to degrade performance on large methods. Different handsets have different method size thresholds. Through this set of properties you can specify the thresholds such that the application performance is not degraded.

Tips
  • It is not recommended to inline methods manually. The different method size limits imposed by different handsets will likely cause performance issues on some handsets.

Previous pageContentsNext page