473,498 Members | 1,793 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 1453
Anders Both <an********@hotmail.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.com>
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.com> 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********@hotmail.com> wrote in message
news:#E**************@TK2MSFTNGP09.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********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.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
1718
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...
3
3096
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...
0
1094
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...
1
3275
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...
3
2577
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...
2
1129
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...
8
1860
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)....
4
1497
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...
1
1506
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:...
0
7125
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
7167
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,...
1
6890
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...
0
7379
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...
1
4915
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...
0
4593
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...
0
3095
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...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1423
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 ...

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.