Scott said, "Tact may be interfering with how the JIT works. If you compare the run times of Pi_Parallel.java and Pi_Parallel_JIT.java, you can see that Pi_Parallel_JIT.java runs much faster than Pi_Parallel.java (approximately 9s vs 1m35s). The only difference between the two files is that Pi_Parallel_JIT.java has a separate method for a for loop (the new method is at line 27) and Pi_Parallel.java does not (line 44)."
Scott said, "Tact may be interfering with how the JIT works. If you compare the run times of Pi_Parallel.java and Pi_Parallel_JIT.java, you can see that Pi_Parallel_JIT.java runs much faster than Pi_Parallel.java (approximately 9s vs 1m35s). The only difference between the two files is that Pi_Parallel_JIT.java has a separate method for a for loop (the new method is at line 27) and Pi_Parallel.java does not (line 44)."