将MSIL编译为本机代码。
自动化应用程序经常被编译为本机代码,因此执行速度比VBA代码快。
Automation applications are often compiled to native code and therefore execute faster than VBA code.
因为托管代码在执行之前会编译为本机代码,所以,在有些方案中可以大大提高性能。
Because managed code compiles to native code prior to execution, you can achieve significant performance increases in some scenarios.
例如,设定-XX:CompileThreshold=10000,Hotspot会在代码被执行10,000次后将它编译为本机代码。
For example, using -XX:CompileThreshold=10000 will cause Hotspot to compile code after it has been executed 10,000 times.
记住宿主的VBA代码被编译为p代码,而不是本机代码,这会导致性能略微有所下降,尽管在进程内运行能够优化对Office对象的方法调用。
Keep in mind that hosted VBA code is compiled to p-code, not native code, and this incurs a slight performance penalty, although running in process enables optimized method calls to Office objects.
现在Y.cpp被编译为托管代码,从Z.cpp 调用就不需要有从托管到本机的转换成本。
Y.cpp is now compiled to managed code and calls from Z.cpp no longer incur the managed-to-native transition cost.
托管XSLT引擎将XSLT编译为CLR代码,在某些情况下,其性能甚至比本机XSLT引擎还要好。
The managed XSLT engine compiles XSLT to CLR code, and performs even better in some scenarios than the native XSLT engine.
在执行时,实时(JIT)编译器将MSIL翻译为本机代码。
At execution time, a just-in-time (JIT) compiler translates the MSIL into native code.
在执行时,实时(JIT)编译器将MSIL翻译为本机代码。
At execution time, a just-in-time (JIT) compiler translates the MSIL into native code.
应用推荐