Load framework first time

  • Thread starter Thread starter Gene Vangampelaere
  • Start date Start date
G

Gene Vangampelaere

I've created an application in VB.NET. The application works fine but when
you start it the first time it takes a long time (5-10seconds) to load (I
think that the framework is beeing loaded at that time???).

How can I decrease the 'load' time ?


Gene
 
Is this a WIndows Forms application?

You *may* get some mileage from running NGEN.EXE on the application to create a native image (sometimes alot of code has to JIT at the start of GUI applications).

Why don't you put some instrumentation into your app just to make sure what is taking the time - it may be you're accessing stuff over the network/etc and the best thing to do would be to display a splash screen as the main form loads. Other things you can do is delay create your controls on busy forms with multiple tabs so they only create when the appropriate tab is shown

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

I've created an application in VB.NET. The application works fine but when
you start it the first time it takes a long time (5-10seconds) to load (I
think that the framework is beeing loaded at that time???).

How can I decrease the 'load' time ?


Gene
 
Back
Top