What does a JIT compiler do?

后端 未结 9 1292
孤街浪徒
孤街浪徒 2020-12-13 00:28

I was just watching the Google IO videos and they talked about the JIT compiler that they included in the android. They showed a demo of performance improvements thanks to t

9条回答
  •  暖寄归人
    2020-12-13 00:56

    JIT = Just in Time. It's a process whereby a program that would otherwise be interpreted (e.g. Java bytecodes or Javascript code) is converted to native machine code on the fly as it runs to improve performance.

    Some of the benefits are the JIT compiler can see the hotspots and apply more aggressive optimisations, it can also take advantage of any extensions the current processor has like SSE2.

    This question may have more info: How a JIT compiler helps performance of applications?

提交回复
热议问题