Load framework first time

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
 
R

Richard Blewett [DevelopMentor]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top