Live Chat Icon For mobile
Live Chat Icon

Is it possible to cache an assembly to improve performance?

Platform: WinForms| Category: Performance

Ngen.exe allows you to install the native image of an assembly into the native image cache, resulting in quicker loading and execution of the assembly.

For example:

ngen [options] [assemblyName | assemblyPath ]

ngen MyAssembly.dll
This creates a native image for MyAssembly.dll and installs it to the native image cache.

ngen /delete MyAssembly.dll
This removes the native image from the cache. 

It is also important to note that the native image must be created on the end user’s machine, as it is based on the system that creates it.

Share with

Share on twitter
Share on facebook
Share on linkedin

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.