假设我的代码是否总是要在特定的处理器上运行,如果我在安装过程中获得了这些信息 - 是否有机会避免 JIT?
最佳答案
使用 NGEN :
The Native Image Generator (Ngen.exe) is a tool that improves the performance of managed applications. Ngen.exe creates native images, which are files containing compiled processor-specific machine code, and installs them into the native image cache on the local computer. The runtime can use native images from the cache instead using the just-in-time (JIT) compiler to compile the original assembly...
For additional information on using Ngen.exe and the native image service, see Native Image Service...
关于.net - 我可以在 .NET 中避免 JIT 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/446211/