Reducing app start-up time

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John

    Reducing app start-up time

    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


  • Martin Zugec

    #2
    Re: Reducing app start-up time

    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]

    Comment

    • Miro

      #3
      Re: Reducing app start-up time

      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.EnforceConst raints = False
      daTemp.Fill(ds. Tables("Table1" ))
      dsEnforceConstr aints = 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


      "John" <John@nospam.in fovis.co.ukwrot e in message
      news:eGAlPJYdIH A.4436@TK2MSFTN GP05.phx.gbl...
      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
      >
      >

      Comment

      Working...