JIT compiler vs offline compilers

后端 未结 11 1136
醉酒成梦
醉酒成梦 2020-11-28 05:39

Are there scenarios where JIT compiler is faster than other compilers like C++?

Do you think in the future JIT compiler will just see minor optimizations, features b

11条回答
  •  庸人自扰
    2020-11-28 06:23

    JIT compilers know more of the systems then static compilers. Adding multitheading on the fly specific to the machine can be a gigantic speed improvement once they get it working.

    JIT compilers in general have a bit of startup latency where the first run of the program/code can be much slower then precompiled code. The cold start disadvantage.

    Another big advantage of JIT compilation is that the compiler can be updated after your program has been build and gain new compiler tricks without needing a complete new program deployment.

提交回复
热议问题