jda

What can be done to improve the startup time of a .NET application (VB), built with release and Any CPU mode

Once the application has been running for a while and some of the screens visited, the performance is just what one would expect.

However, the initial startup time, including the activation of screens (WinForms) is very slow when compared to 32-bit or X64.

Thank you, John



Re: Common Language Runtime Startup time of .NET application (Any CPU) slow on IA64 when compared with 32-bit

nobugz

Checkout Ngen.exe, you'll find info in the MSDN library.





Re: Common Language Runtime Startup time of .NET application (Any CPU) slow on IA64 when compared with 32-bit

Martin Xie - MSFT

There are a couple of different ways to improve start up time of your application:

1. Run
ngen over your assemblies
2. Reduce the number of assemblies (dlls) you load at startup
3. Delay heavy processing or loading of data until it is needed by the user
4. Spread the loading of expensive resources over multiple threads
5. Use a profiler to find the slower portions of startup
6. Use a splash screen to increase the user's 'perceived' speed of the application (ie it looks like it's doing something sooner)

Here is one thread about How to Improving .NET Application Performance.

MSDN articles:

Improving .NET Application Performance and Scalability

Improving Application Startup Time

Hope that helps!