471,347 Members | 1,750 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,347 software developers and data experts.

Speed up App Startup

ted
I have a legacy app that launches a C# app. It takes a long time for it to
launch the first time and after that it launches fine. I know it has to do
with the .net runtime. Is there a way around this? This app uses 1.1 .net
runtime.

Thanks
Jan 20 '06 #1
4 2305
It take a while to compile the code into native machine language.. Remember,
when you "compile" your .NET application it does not create machine code,
but a byte-code type of language that still needs to be converted into
machine specific code when it is ran for the first time.

"ted" <te*@united.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
I have a legacy app that launches a C# app. It takes a long time for it to
launch the first time and after that it launches fine. I know it has to do
with the .net runtime. Is there a way around this? This app uses 1.1 .net
runtime.

Thanks

Jan 20 '06 #2
ted <te*@united.com> wrote:
I have a legacy app that launches a C# app. It takes a long time for it to
launch the first time and after that it launches fine. I know it has to do
with the .net runtime. Is there a way around this? This app uses 1.1 .net
runtime.


The first time it loads, the .NET framework libraries have to load from
disk. After that, they're probably cached. I suspect that if you leave
your computer for a few hours (and do other things) then start the app
up again, it'll be slow again.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Jan 21 '06 #3
Am Fri, 20 Jan 2006 15:21:09 -0700 schrieb ted:
I have a legacy app that launches a C# app. It takes a long time for it to
launch the first time and after that it launches fine. I know it has to do
with the .net runtime. Is there a way around this? This app uses 1.1 .net
runtime.

Thanks


Hello Ted,

have a look a this web page

http://www.codeguru.com/Csharp/.NET/...php/c4651#more

It's about the ngen.exe tool included in the .NET Framework. It could help
to improve application load time...

Bye

Horst
Jan 21 '06 #4
You can also have a look at
( http://msdn.microsoft.com/msdnmag/is...2/CLRInsideOut )

--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com

"ted" <te*@united.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
I have a legacy app that launches a C# app. It takes a long time for it to
launch the first time and after that it launches fine. I know it has to do
with the .net runtime. Is there a way around this? This app uses 1.1 .net
runtime.

Thanks

Jan 21 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Franz Steinhaeusler | last post: by
30 posts views Thread by Mike Cox | last post: by
2 posts views Thread by Andreas Zita | last post: by
2 posts views Thread by markoZ | last post: by
7 posts views Thread by Frank Rizzo | last post: by
5 posts views Thread by Cylix | last post: by
32 posts views Thread by Pedro Borges | last post: by
reply views Thread by Ronak mishra | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.