Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Why load application so slow during the startup of the system

Why load application so slow during the startup of the system

Scheduled Pinned Locked Moved C#
csharpperformancequestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    remex_1980_junyongwu
    wrote on last edited by
    #1

    Hi All, Now, I wrote an application with C#, and I add it to run at the Startup list of OS. I found that the application need 60 sec to start. However, when I run it 10 min after the start of the OS, it only costs 8 sec. Could you give me the reason why and what cause the difference of the performance? Thanks very much,

    I 1 Reply Last reply
    0
    • R remex_1980_junyongwu

      Hi All, Now, I wrote an application with C#, and I add it to run at the Startup list of OS. I found that the application need 60 sec to start. However, when I run it 10 min after the start of the OS, it only costs 8 sec. Could you give me the reason why and what cause the difference of the performance? Thanks very much,

      I Offline
      I Offline
      il_masacratore
      wrote on last edited by
      #2

      I think that is because when you start the OS, it needs time to start all process... And, if you sum the start of your app is more time. And if you think in the first time that your app is started expenses more time... IT's too much time to sum!! To start your app faster the first time you can use ngen.exe. It precompiles and makes your application run the first time as fast as the other next.

      Visit my blog at http://dotnetforeveryone.blogspot.com/

      E 1 Reply Last reply
      0
      • I il_masacratore

        I think that is because when you start the OS, it needs time to start all process... And, if you sum the start of your app is more time. And if you think in the first time that your app is started expenses more time... IT's too much time to sum!! To start your app faster the first time you can use ngen.exe. It precompiles and makes your application run the first time as fast as the other next.

        Visit my blog at http://dotnetforeveryone.blogspot.com/

        E Offline
        E Offline
        Elayaraja Sambasivam
        wrote on last edited by
        #3

        Hi, Don't have any syncronize call in the startup function like database/web service call. Use asyncronize(delegate) call to do the startup functionality. Regards Elayaraja.S

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups