Monday, December 01, 2008 Login    Register

 


  Search Blog  
  Blog Listing  
  Blog Archive  
QualitySkinsLowPrice
  DotNetNuke Performance Enhancements  
Location: BlogsThe Mighty Blog    
Posted by: Will Strohl 12/28/2007
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.

Copyright ©2007 Will Strohl
Permalink |  Trackback

Comments (3)   Add Comment
Re: DotNetNuke Performance Enhancements    By digmike on 12/28/2007
Will, Thanks for your efforts. I downloaded the default.aspx.vb from Gemini and it seems to be the same as the base source.

Re: DotNetNuke Performance Enhancements    By wills 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.

Re: DotNetNuke Performance Enhancements    By wills on 12/28/2007
Okay. I certainly did post the wrong one. It is there now. Sorry about that.


Your name:
Title:
Comment:
Security Code
Enter the code shown above in the box below
Add Comment   Cancel 
© Copyright 2004-2008 by Will Strohl. All rights reserved.