xlxs xlxs - 1 month ago 9
Java Question

In terms of performance which is faster bytecode generated by javac or ecj compiler?

Lets assume that 1.8 runtime environment from oracle is being used; bytecode generated by ECJ compiler is faster than bytecode generated by javac compiler?

Answer

Neither compiler optimises the code except for constant inlining as specified in the Java Language Specification. The main optimisations all occur at runtime.

Comments