Have you ever used ngen.exe?

后端 未结 8 1116
感动是毒
感动是毒 2021-01-31 07:40

Has anybody here ever used ngen? Where? why? Was there any performance improvement? when and where does it make sense to use it?

8条回答
  •  野的像风
    2021-01-31 08:08

    ngen is mostly known for improving startup time (by eliminating JIT compilation). It might improve (by reducing JIT time) or decrease overall performance of the application (since some JIT optimizations won't be available).

    .NET Framework itself uses ngen for many assemblies upon installation.

提交回复
热议问题