JIT vs NGen - what is the difference?

后端 未结 5 2150
青春惊慌失措
青春惊慌失措 2020-12-13 04:35

So when CLR runtime load a .NET assembly, it compiles it into machine native code. This process is called JITing. NGen is also the process of compiling .NET assembly into na

5条回答
  •  误落风尘
    2020-12-13 05:25

    The difference is when they occur. The JIT compilation occurs while your program is running. NGen is a typically done at installation time of your program and happens before your program is run. One of the goals of NGen is to remove the JIT penalty from application start up.

提交回复
热议问题