The Mighty Blog

Dec28

Written by:Will
12/28/2007  RssIcon

For those of you that are familiar with DotNetNuke (DNN), you know that although it is not a "slow" application, it has its moments. Also, ANY application can benefit from performance enhancements. I just sent a few to the DotNetNuke team.

For those of you that are familiar with DotNetNuke (DNN), you know that although it is not a "slow" application, it has its moments.  Also, ANY application can benefit from performance enhancements.  I just sent a few to the DotNetNuke team.

My only goal in this submission was to optimize the misuse of string concatenation and evaluation.  For instance, using String.Concat and StringBuilder in place of the standard string concatenation method ("&", and "+").  I have literally seen some applications become 500% faster with this simple change.  The exact speed benefit depends on a number of factors, but if you have strings, they are processed slower than most other portions of your code.

Here is a DNN thread where I first proposed this to the DNN community.

So, based on the feedback on the forum, and my own experience, I refactored two of the most accessed code files in the DNN project: Default.aspx.vb, and SqlDataProvider.vb. 

Here are the issues I created on the DNN support site where I submitted the refactored class files:

http://support.dotnetnuke.com/issue/ViewIssue.aspx?id=6905&PROJID=2

http://support.dotnetnuke.com/issue/ViewIssue.aspx?id=6909&PROJID=2

Let's hope that the Core Team likes them.  Should this go well, I will continue to refactor code whenever I can for string optimization.  I cannot promise anything, but I would like to help the DNN project whenever I can.  :)

Let's keep our fingers crossed for an even faster version of DNN in the near future!

* UPDATE 12/29/2007
I just submitted another update to Gemini.  This one is for the HttpModules project and includes all of the aforementioned string enhancements.

3 comment(s) so far...


Will, Thanks for your efforts. I downloaded the default.aspx.vb from Gemini and it seems to be the same as the base source.

By digmike on   12/28/2007

Unless I uploaded the wrong one, there should be a bunch of string enhancements. I will doublecheck. Thanks for letting me know.

By wills on   12/28/2007

Okay. I certainly did post the wrong one. It is there now. Sorry about that.

By wills on   12/28/2007

Your name:
Gravatar Preview
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Comment:
Security Code
CAPTCHA image
Enter the code shown above in the box below
Add Comment   Cancel 
Add to Technorati Favorites
Tweet about my blog
Will Strohl - The Mighty Blog - RSS Feed

Tag Cloud

Sort by:Tag | SizeRSS
camp   community   dnn   dotnetnuke   dotnetnuke®   event   example   free   get   group   integer   jquery   meeting   module   new   odug   orlando   search   session   think  
The opinions expressed here are the personal opinions of Will Strohl and do not necessarily represent the views and opinions of the DotNetNuke Corporation.
© Copyright 2004-2010 by Will Strohl. All rights reserved.Website Skinned By: Ralph Williams  Website Hosted By: Applied Innovations