Over time Hotspot and the JIT will convert the interpreted code into native code using profiling information.
随着时间的流逝,Hotspot和JIT会根据收集的信息将解释型代码转化为本机代码。
But performing a task with interpreted code and performing it with compiled code can take significantly different amounts of time.
但是使用解释后的代码执行任务和使用编译后的代码执行任务在时间上有巨大的差异。
Let's say you're going to time 200,000 iterations through a loop, and the compiled code is 10 times faster than the interpreted code.
假设您正在通过循环计时200,000次迭代,编译代码比解释代码快10倍。
应用推荐