.NET Slow startup

Miscellaneous Forums/General Discussion/.NET Slow startup

What is the average time for a .NET application to startup? I have to wait around 30secs. Is that normal or does it depend on computer speed as mine is getting on a bit now at 1.5ghz.

Maybe .NET apps are just a little resource hungry? Just thought I`d ask to see if there was anything that can be done to speed things up a little.

I`m using Project Studio BTW which is a great BMax IDE apart from the slowish startup times. I realise though that this is probably out of the authors controls as it is .NET based.

Jason.

.Net applications are JIT compiled (like Java) so the first time they run it takes a while. After the first run there should be no overhead.

Darkheart

Yup, it's a first time issue.

When the native image was created, it'll run as it should be.

30 seconds does seem rather excessive. I work with .Net daily, and I've never experienced first-time startups anywhere near that slow.

If using a 64 bits windows, get the latest updates for .net

You can maybe get round it for your application by calling the .Net app before you actually need it. I've done this with scripting before, effectively giving my .Net components a "do nothing" instruction when my app starts, just so that when I want it, it works fast.

Darkheart

Depends on the app. I'm on 1.2ghz duron. I think the slowest starting app I have is visual studio 2005,( but its not entirely managed afaik )...I guess its roughly about 30 seconds for startup.

Good article on reducing startup time here: http://msdn.microsoft.com/msdnmag/issues/06/02/CLRInsideOut/default.aspx

Doesn't really help you as an end user, but if you're curious it will explain whats going on behind the scenes.

*EDIT* Heh... I've been on a customizing kick the past day or so, and this talk about visual studio's slow start up got me lookin around. I disabled the start up logo, and the news item. It now starts in like 4 seconds. *EDIT*

OK Thanks for the info everyone.

Jason.