473,672 Members | 2,957 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1524
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
1404
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
2048
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 when all the data is the same). The is notably different on one particular query that takes 1 sec on the test machine and almost 1 min on the live machine The total number of user connections on the live machine is normally 4 or so (found out...
2
7023
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 Single On Error GoTo CodeErr 'PURPOSE: Times a process in seconds from start to finish 'USAGE: msgbox TimeIt Dim sngStart As Single
2
300
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 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...
1
2524
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
1586
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 mainly so a table doesn't get accidentally deleted or ruined even though I back both databases up often. Is there any way to to speed up the reports, forms and queries they run? I run the compact and repair often as well. i know a lot will...
1
1365
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 managed wrapper (and therefore of the unmanaged engine) on separate threads so that it can be working on two scenarios at the same time. The engine keeps track of certain counters so that I can monitor it's progress. However, I'm finding that the...
1
917
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
1464
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 ask applies more generally than my specific case. I would greatly appreciate general feedback in terms of computing and of course considerations specific to implementation in Python. The nodes in my network may be ON or OFF. The network starts...
0
8940
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8628
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6249
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5718
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4237
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4433
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2830
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2083
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1831
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.