Why load application so slow during the startup of the system
-
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,
-
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 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/
-
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/
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