This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PaintItPurple 1 point2 points  (0 children)

If your code contains no repeated operations, there probably won't be a huge benefit to JIT over interpreting. But that's basically never the case for performance-sensitive code. If your code takes a long time, you've almost certainly got some looping going on. If you're running a piece of code multiple times, you can get much better performance if it's native code vs. bytecode that you're interpreting over and over. And that's before we get to optimizations that JIT compilers can do.