Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is native image cache?

cache image native
0
Posted

What is native image cache?

0

Create an image of an assembly using Ngen.exe tool and place it the GAC. This native image file contains compiled processor-specific machine code. Once created the runtime will automatically uses this native image each time it runs the assembly. Therefore it loads and execute faster, because it restores code and data structures from the native image cache rather than generating them dynamically. Important: The native image that Ngen.exe generates cannot be shared across Application Domains. Therefore, you cannot use Ngen.exe in application scenarios, such as ASP.NET, that require assemblies to be shared across application domains.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123