Benefits of JIT Compilation


Code that is just-in-time compiled has some significant advantages over the compiled unmanaged code.

1. Reduced Memory Usage – It only compiles those methods that are actually used.

2. Good Locality of Reference – Code that is used together will often be in the same page of memory, preventing expensive page faults.

3. Cross-assembly inlining – Methods from the other DLLs, including the .NET Framework, can be inlined into you own application, which can be a significant savings.

There is also a benefit of hardware-specific optimisations, but in practice there are only a few actual optimisations for the specific platforms. However, it is becoming increasingly possible to target multiple platforms (e.g. Any CPU) with the same piece of code. And it is likely we will see more aggressive platform-specific optimisations in the future.

Most code optimisations in .NET do not take place in the language compiler (the transformation from C#/VB.NET to IL). Rather, they occur on-the-fly in the JIT compiler.

–EOF (The Ultimate Computing & Technology Blog) —

GD Star Rating
a WordPress rating system
224 words
Last Post: How to Change the Crontab Editor?
Next Post: The Best Efficient Anti-Spam PHP Code Detection for WordPress

The Permanent URL is: Benefits of JIT Compilation

One Response

Leave a Reply