473,624 Members | 2,121 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Application Performance,

Does someone knows links to web-pages, or book contatining, information
about the most important things to consider, while trying to make the .NET
code perform faster.

e.g. In my code I make big use of ArrayList and Hashtable, but my code would
be only a little bit more complicated, if using normal Arrays. I feel like a
thing like that maybe could improve performance ?

What are they most important things to consider ?

Best Regards,

Anders, Denmark.

Nov 15 '05 #1
5 1462
Anders Both <an********@hot mail.com> wrote:
Does someone knows links to web-pages, or book contatining, information
about the most important things to consider, while trying to make the .NET
code perform faster.

e.g. In my code I make big use of ArrayList and Hashtable, but my code would
be only a little bit more complicated, if using normal Arrays. I feel like a
thing like that maybe could improve performance ?

What are they most important things to consider ?


In my opinion, the most important things to consider are:

1) The readability of the code
2) The correctness of the code
3) The maintainability of the code
4) Does your code perform "well enough"?

For the most part, changing from the collections to arrays will give
you *some* speed improvement, but it may well not give you much, and
may well reduce readability considerably.

If lots of the things you're storing/accessing are value types, you
would save a bit more, as using arrays you wouldn't need to be
boxing/unboxing the whole time.

If you feel your app isn't performing well enough, make sure you know
where the bottleneck is, and focus on improving that bit of code. Use a
profiler or even just rough-and-ready timing to try to find the
bottleneck (profiling will be more reliable, but more expensive).

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #2
n!
> If you feel your app isn't performing well enough, make sure you know
where the bottleneck is, and focus on improving that bit of code. Use a
profiler or even just rough-and-ready timing to try to find the
bottleneck (profiling will be more reliable, but more expensive).


Amen :)

As a follow up, here's a useful page on C# (and .NET in general)
performance:

http://msdn.microsoft.com/vcsharp/us...f/default.aspx

n!
Nov 15 '05 #3
On Thu, 8 Jan 2004 11:14:15 -0000, Jon Skeet [C# MVP]
<sk***@pobox.co m> wrote:
If lots of the things you're storing/accessing are value types, you
would save a bit more, as using arrays you wouldn't need to be
boxing/unboxing the whole time.


"A bit more", as in a maximum speedup of 1,500%. And that wasn't even
an array, just a strongly typed ArrayList. :-)

Look here: http://www.ericjsmith.net/codesmith/
--
http://www.kynosarges.de
Nov 15 '05 #4
Thx, for the advices until now. I will look into it.

But ofcause the design of the logic, will most often be the one and only
thing to consider.

"Anders Both" <an********@hot mail.com> wrote in message
news:#E******** ******@TK2MSFTN GP09.phx.gbl...
Does someone knows links to web-pages, or book contatining, information
about the most important things to consider, while trying to make the .NET
code perform faster.

e.g. In my code I make big use of ArrayList and Hashtable, but my code would be only a little bit more complicated, if using normal Arrays. I feel like a thing like that maybe could improve performance ?

What are they most important things to consider ?

Best Regards,

Anders, Denmark.

Nov 15 '05 #5
I found this book to be quiet good "Maximising .ENT Performance"
http://www.amazon.com/exec/obidos/tg...452685-3760016

"Anders Both" <an********@hot mail.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Does someone knows links to web-pages, or book contatining, information
about the most important things to consider, while trying to make the .NET
code perform faster.

e.g. In my code I make big use of ArrayList and Hashtable, but my code would be only a little bit more complicated, if using normal Arrays. I feel like a thing like that maybe could improve performance ?

What are they most important things to consider ?

Best Regards,

Anders, Denmark.

Nov 15 '05 #6

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

Similar topics

5
1732
by: Steve_CA | last post by:
Hello all, I've been recruited to assist in diagnosing and fixing a performance problem on an application we have running on SQL Server 7. The application itself is third party software, so we can't get at the source code. It's a Client Management system, where consultants all over the country track their client meetings, results, action plans, etc. , and has apparently been problematic for a long time now. I came into this...
3
3129
by: Amit Dedhia | last post by:
Hi I am developing a Dot net application (involving image processing) on a uni processor. It works well on my machine. I then take all my code on a multi processor, build and run the application there. There is performance degradation. The usual performance of the application on MP machine is better than that of uni processor machine. But the performance of MP degrades when it comes to the multi-threaded part of the application. I am...
0
1116
by: Girish NS | last post by:
Hi, I'm developing a MDI application. I'm facing problems with the performance of the MDI child forms in the application. The load time of child forms is very slow. In case of MDI child forms having background image and handling paint event, the load time is even slower due to the background painting. Repainting of form controls is also not proper.. If I execute the forms as a SDI application, the performance is significantly better. ...
1
3293
by: Dominic | last post by:
Hi all, We've just migrated to IIS 6.0 / Windows Server 2003. We are now experiencing some stability problem what we did not experience in IIS 5.0 / Windows 2000 Server. Our ASP.NET application is running in a web-farm environment of multiple web servers. We have been using "Performance Monitor" to monitor the "Requests in Application Queue" counter of "ASP.NET Apps v.1.1.4322" object. We have found the following pattern.
3
2591
by: groups | last post by:
Hi all, I've recently ported a rather large C application to run multithreaded. A few functions have seriously deteriorated in performance, in particular when accessing a rather large global array, that contains information that is shared among threads. Any idea, why the lines accessing this global array now take about 50x longer in the multithreaded application?
2
1138
by: Yoav Shtainman | last post by:
I combined several application projects into one large project for ease of management and control. My previous application was a collection of small independent projects. Can this change affect the performance of the application? It is a .NET Web application using SQL Server back end
8
1872
by: NAdir | last post by:
Hi, thank you for your help. My VB.Net application contains a document that the user can refresh at any time. The refresh works fine and needs to loop through few datatables (hundreds of rows). This works fine until I delete some rows in two tables. Just after the delete if I do the refresh there is a huge memory allocated and the time needed to perform the refresh increase, the memory and time continue to increase on each refresh until I...
4
1515
by: skotapal | last post by:
Hello I manage a web based VB .net application. This application has 3 components: 1. Webapp (this calls the executibles) 2. database 3. business logic is contained in individual exe application that get called in a sequence to do some heavy calculations (mainly DB operations with in memory datasets)
1
1519
by: mjheitland | last post by:
Hello, does anyone know if an update is available (or at least planned) for the much cited standard reference IMPROVING .NET APPLICATION PERFORMANCE AND SCALABILITY? link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/scalenet.asp or as a download:
0
8236
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8173
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8679
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...
0
8621
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
4079
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
4174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2606
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
1
1785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1482
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.