Search code examples
c#performancestartupngen

How can I decrease startup and running time in .net applications?


I use C# to write windows applications with the .NET framework. How can I decrease startup time for these applications? My applications feel very slow during startup and initialization, particularly when showing the initial form.

My application works with an Access (MDB) database to save data. In some forms it loads data, but the first time the application shows any given form, it takes a long time to display.

I've tried using NGen to decrease the startup time, but it did not help me as expected.


Solution

  • You might want to use EQATEC Profiler to profile your application and see which function calls take a long time. It makes it a bit easier to visualize what is happening in the background and where improvements could be made.