473,382 Members | 1,611 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,382 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 1507
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.