is it possible to remove jumps with final boolean on java jit?
问题 As we know some people say java JIT is faster then C++. I had some idea to utilize JIT and remove some instructions at runtime code. Here is sample code i tried: /** * Created by kadirbasol on 4/6/14. */ public class RemoveJump { public final boolean test; private static RemoveJump instance = new RemoveJump(); public static final RemoveJump getInstance() { return instance; } private RemoveJump() { //set the test on the constructor once and //remove this if statement forever from testLoop test