gpt4 book ai didi

.net - 我可以在 .NET 中避免 JIT 吗?

转载 作者:行者123 更新时间:2023-12-04 16:17:31 26 4
gpt4 key购买 nike

假设我的代码是否总是要在特定的处理器上运行,如果我在安装过程中获得了这些信息 - 是否有机会避免 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com