473,394 Members | 1,701 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Can dll assemblies boost execution speed?

Hi

I'm trying to figure out why my .net app take ages to start for the first
time. Well over 10 seconds. I'm not doing anything particullary cpu intense
at startup so I'm a bit confused. I have read that it takes "a while" for
the .net framwork to load the first time but this long??
Does anyone have any suggestion that could boost the execution of .net apps?

If I would split my app into different dll:s, could that boost the execution
or does all assembly references load into memory at startup anyway?

/Andreas Zita
Sep 12 '05 #1
2 1508
Andreas Zita wrote:
at startup so I'm a bit confused. I have read that it takes "a while" for
the .net framwork to load the first time but this long??


When first executed, .Net apps must be JIT compiled into native code.
This will account for some of the delay you are experiencing.

To counteract this, you can pre-compile your apps using the ngen tool
that comes with .Net.

Sep 12 '05 #2
> > at startup so I'm a bit confused. I have read that it takes "a while"
for
the .net framwork to load the first time but this long??


When first executed, .Net apps must be JIT compiled into native code.
This will account for some of the delay you are experiencing.

To counteract this, you can pre-compile your apps using the ngen tool
that comes with .Net.

Somehow it would be nice if an installer would pre-compile for that machine
during installattion.
This slow first start-up gives the wrong impression that .NET programs are
slow. But it is only the first moment, for the rest it just runs fine.

Also, only the components that are actually used is loaded in memory. So if
you use another function that you did not use yet in your application, then
that part will also be loaded and the first time be very slow.
Sep 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: linvin333 | last post by:
Hi, Does function overloading affect the speed of execution of the program ? If so what is the reason ? How does it compare with a speed of a program using non-overloded functions ? Linny
8
by: djwhisky | last post by:
Hi there - i'm hoping someone can help me! I'm having a problem with a live database that i'm running on MSDE - It seems to have slowed down quite considerably from the test environment (even...
2
by: laurenq uantrell | last post by:
I have been using the following function to test the speed of various functions, however, quite often the return value is zero. I'm hoping someone can help improve on this. Function TimeIt() As...
2
by: Andreas Zita | last post by:
Hi I'm trying to figure out why my .net app take ages to start for the first time. Well over 10 seconds. I'm not doing anything particullary cpu intense at startup so I'm a bit confused. I have...
1
by: Kelie | last post by:
hello, would there be any speed increase in code execution after python code being compiled into exe file with py2exe? thanks, kelie
3
Presto731
by: Presto731 | last post by:
I have a database set up that 5-10 people on my network may be using at any given time. The majority of the tables they feed from are in a master database seperate from the one they use. I do this...
1
by: =?Utf-8?B?TWFyayBT?= | last post by:
I have an application that consists of a managed C++ wrapper around an unmanaged C++ "engine" that performs a very processor intensive task. In the application I create two instances of the...
1
by: Andy B | last post by:
Is there a way to check the execution speed of a page that has been written in both c# and VB? I want to see if there is any difference in timing...
17
by: Suresh Pillai | last post by:
I am performing simulations on networks (graphs). I have a question on speed of execution (assuming very ample memory for now). I simplify the details of my simulation below, as the question I...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.