Does it help to use NGEN?

后端 未结 6 1823
离开以前
离开以前 2020-11-30 07:50

Is it better to use NGEN an ASP.NET application when we know it is not going to change much? Or is the JIT good enough?

The only reason I asked was because this arti

6条回答
  •  渐次进展
    2020-11-30 08:35

    NGen helps startup time. For example, the Entity Framework documentation says this about the benefit of running NGen:

    Empirical observations show that native images of the EF runtime assemblies can cut between 1 and 3 seconds of application startup time.

    The context is just the Entity Framework assemblies. NGenning other assemblies would provide additional speedup.

提交回复
热议问题