Print Page | Close Window

.NET speed question

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: ASP.NET Discussion
Forum Description: Discussion and chat on ASP.NET related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=8372
Printed Date: 28 March 2026 at 2:25am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: .NET speed question
Posted By: Bluefrog
Subject: .NET speed question
Date Posted: 28 December 2003 at 4:36am

Does anyone know of a resource that tells the relative speed of comparable functions (and classes) in .NET.

e.g. The stringbuilder class is MUCH faster than string1 & string2.

I'm wondering about how fast some of the functions and classes actually execute.

e.g. Select Case vs. If Then and arrays vs. collections, etc. etc. etc.



-------------
http://renegademinds.com/" rel="nofollow - Renegade Minds - Guitar Software http://renegademinds.com/Default.aspx?tabid=65" rel="nofollow - Slow Down Music



Replies:
Posted By: KCWebMonkey
Date Posted: 28 December 2003 at 6:07pm
That WOULD be nice to know...


Posted By: Bluefrog
Date Posted: 04 January 2004 at 8:16am

No answers?

Does anyone have any clue as to where to find this? Or at least a hint?



-------------
http://renegademinds.com/" rel="nofollow - Renegade Minds - Guitar Software http://renegademinds.com/Default.aspx?tabid=65" rel="nofollow - Slow Down Music


Posted By: Bunce
Date Posted: 06 January 2004 at 7:23pm
Not hard to do your own tests. Use the built in .Net performance thingy which measures requests/second.

-------------
There have been many, many posts made throughout the world...
This was one of them.


Posted By: michael
Date Posted: 06 January 2004 at 9:06pm
I saw a few on msdn which compares datagrid vs. datalist vs. repeater do a search there I am sure MS has tons on that.

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: Bluefrog
Date Posted: 08 January 2004 at 8:51am
I didn't see anything at MSDN. I'll check back on it though.

-------------
http://renegademinds.com/" rel="nofollow - Renegade Minds - Guitar Software http://renegademinds.com/Default.aspx?tabid=65" rel="nofollow - Slow Down Music


Posted By: alachig82
Date Posted: 17 January 2004 at 5:08pm

hello to all

you can serach about it at search eng. like google.

or you can get my designed http://www.iaushab.ac.ir - http://www.iaushab.ac.ir  site.

 



Posted By: michael
Date Posted: 17 January 2004 at 10:23pm
This is the performance article I talked about on MSDN, I am sure there are more then this one:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/aspnet-whenusedatawebcontrols.asp - http://msdn.microsoft.com/library/default.asp?url=/library/e n-us/dnaspp/html/aspnet-whenusedatawebcontrols.asp

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: Bluefrog
Date Posted: 18 January 2004 at 1:14am
This is one article that has several issues covered:

%20http://www.fawcette.com/vsm/2002_08/magazine/features/bale%20na/default.aspx - http://www.fawcette.com/vsm/2002_08/magazine/features/bale na/default.aspx
 
The title is http://www.fawcette.com/vsm/2002_08/magazine/features/balena/default.aspx - Speed Up Your VB.NET Code

It also covers the StringBuilder method along with the reasons.

Thanks Michael. I'll read up on that MSDN article.

P.S. There seems to be a lot of link spamming happening in the forums lately...



-------------
http://renegademinds.com/" rel="nofollow - Renegade Minds - Guitar Software http://renegademinds.com/Default.aspx?tabid=65" rel="nofollow - Slow Down Music


Posted By: bazbaz
Date Posted: 23 January 2004 at 5:34pm

using string concatenation was an error either in VB6. There was a pattern to use mid function to obtain a class similar to .NET stringbuilder.

My tests reported 40% better performance with this patter instead of string concatenation.

 

Originally posted by Bluefrog Bluefrog wrote:

Does anyone know of a resource that tells the relative speed of comparable functions (and classes) in .NET.

e.g. The stringbuilder class is MUCH faster than string1 & string2.

I'm wondering about how fast some of the functions and classes actually execute.

e.g. Select Case vs. If Then and arrays vs. collections, etc. etc. etc.



Posted By: Bluefrog
Date Posted: 23 January 2004 at 11:11pm
Originally posted by bazbaz bazbaz wrote:

My tests reported 40% better performance with this patter instead of string concatenation.

It really depends on what you are doing with the StringBuilder. In one small app processing a small file, I sped it up by over 200x by changing to StringBuilder.

In another instance, the stringbuilder could do it, but string concatenation simply could not do it at all, at least before my patience ran out. There I was working with strings a few MB in size.

I know that if I were using larger files, the speed difference would be larger. So obviously we aren't dealing with a strictly static performance improvement. It would be nice to know the equation that would tell us exactly what the performance improvement 'curve' is.

 



-------------
http://renegademinds.com/" rel="nofollow - Renegade Minds - Guitar Software http://renegademinds.com/Default.aspx?tabid=65" rel="nofollow - Slow Down Music



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net