I don't know of a good article to read. In practice, I wouldn't worry
about it. If your code is performing poorly, there are certainly bigger
concerns. A profiler will tell you more.
If you're just curious, though, then read on. My comments from here on
apply to the Sun JVM for various platforms; other virtual machines --
and especially those on small J2ME platforms such as mobile phones --
may differ considerably. Inlining is performed by the JIT compiler at
runtime, and can be applied very widely in modern virtual machines.
Inlining will be most widely applied to methods that are declared as
private, static, or final, or are in final classes. However,
conditional inlining is also performed on polymorphics methods when
possible. The latter optimization is one of the benefits of adaptive
optimizations like the JVM does over static optimization of other
languages.
--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation