Syntax
/O:I
The /O:I option tells the compiler it may inline methods to produce more efficient code. Code that is inlined does not have the overhead associated with a method call. Since there is no mechanism in the Java language to request inlining of methods, use this option when you want the compiler to inline your code.
Note To disable this option, use a dash (–) after the option on the command line.
Example
The following example evaluates the source code in the myClass.java
file and inlines methods where possible. The resulting myClass.class
file contains the optimized code:
JVC /O:I myClass.java