Reducing app start-up time

J

John

Hi

I am looking to reduce app loading time. My question is, if I use the splash
screen feature from App Properties->Application->Splash Screen does it add
to the app loading time and am I better of running the splash screen using
the background worker?

Thanks

Regards
 
R

rowe_newsgroups

Hi

I am looking to reduce app loading time. My question is, if I use the splash
screen feature from App Properties->Application->Splash Screen does it add
to the app loading time and am I better of running the splash screen using
the background worker?

Thanks

Regards

I found this link using google (you know, that site I keep telling you
to look at before posting):

http://assets.devx.com/download/18810.pdf

Page 498 (the pdf starts on 495) starts talking about setting up your
splash screen to run while your application does initialization.
Please note that it still might talk some time before the splash is
shown, there is some pre-application initialization that must occur
before the application can start.

There are a lot more resources out there on splash screens if the
article doesn't tell you what you need, just start searching on
Google.

Also, it's considered polite to group similar posts by the same author
together, it would have been nice of you to just ask this question in
your earlier thread:

http://groups.google.com/group/micr...3b0189e0379/7bb9c071e2ebdacf#7bb9c071e2ebdacf

And no, I don't just sit around and pick on people, you will find you
will receive much better help when you do your part and research a
question before posting and follow proper netiquette.

Thanks,

Seth Rowe [MVP]
 
M

Martin Zugec

Heya,

splashscreen is running in separate thread, so there is no need to and
it wont slow down your application. Only problem can be either when
you run your application on terminal services\citrix (you shouldnt use
transparency in that case) and sometimes I noticed that splashscreen
stays on screen even when main form was already initialized (for one
or two seconds).

If you think that your application appears to be slow (we all know
that if use see something moving, even if application load take same
amount of time, they will forgive you), I would recommend to implement
some busy bar (continuous progress bar). You can find few at
CodeProject, I am using BusyBar.dll

Martin Zugec [MVP]
 
M

Miro

Are you loading a dataset somewhere in the load event of the application.

I recently read - since the db has constraints on, the initial fill does not
need to check constraints on the db on the initial load (for each record) ,
so you can do something like this
<written in notepad>

Dim ds As Dataset
Dim daTemp As SqlDataAdapter

ds.EnforceConstraints = False
daTemp.Fill(ds.Tables("Table1"))
dsEnforceConstraints = True

Take note how you turn it on after the fact.
By default it is turned on, but it takes overhead to preform the constraint
on the fill object.
If the database has proper db constraints on it, you can be sure you are
getting proper data already from your db that has already validated all your
initial data for you.

-Just a thought - if something like this may be slowing you down.

Miro
 
J

John

Hi Miro

Dataset is part of the equation but as it is strongly types dataset
generated by dataset designer I presume it is not easy to override that
code?

Thanks

Regards
 
B

Bob Powell [MVP]

I have an article on pre-jitting your assemblies on my site.

Check out Windows Forms Tips and Tricks.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 

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