WinForms FAQ - Performance

Why are .Net programs slow to load when running under a domain?

This is a known bug in 1.0. Refer to this MS KB for more information:

KB 318738

Permalink
Is it possible to cache an assembly to improve 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.

Permalink