<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>while true blog &#187; asp mvc linq sql optimization performance magcloud</title>
	<atom:link href="http://blog.whiletrue.com/tag/asp-mvc-linq-sql-optimization-performance-magcloud/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.whiletrue.com</link>
	<description></description>
	<lastBuildDate>Thu, 03 Jun 2010 09:44:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ASP.NET MVC Performance</title>
		<link>http://blog.whiletrue.com/2009/04/aspnet-mvc-performance/</link>
		<comments>http://blog.whiletrue.com/2009/04/aspnet-mvc-performance/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 09:44:17 +0000</pubDate>
		<dc:creator>rudi</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[asp mvc linq sql optimization performance magcloud]]></category>

		<guid isPermaLink="false">http://blog.whiletrue.com/?p=61</guid>
		<description><![CDATA[A closer look at the recently released ASP.NET MVC 1.0 preffered web development stack and some of its performance implications. All of the displayed techniques are in use in production at MagCloud.
The talk was first given in Slovene on 15.4.2009 at a local Microsoft developers user group, SLODUG.
ASP.NET MVC Performance
View more presentations from rudib.

Additional notes:
We [...]]]></description>
			<content:encoded><![CDATA[<p>A closer look at the recently released ASP.NET MVC 1.0 preffered web development stack and some of its performance implications. All of the displayed techniques are in use in production at <a href="http://www.magcloud.com">MagCloud</a>.</p>
<p>The talk was first given in Slovene on 15.4.2009 at a local Microsoft developers user group, <a href="http://slodug.si/">SLODUG</a>.</p>
<div id="__ss_1304737" style="width: 425px; text-align: left;"><a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" title="ASP.NET MVC Performance" href="http://www.slideshare.net/rudib/aspnet-mvc-performance?type=presentation">ASP.NET MVC Performance</a><object width="425" height="355" data="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=performance-eng-090417043244-phpapp01&amp;rel=0&amp;stripped_title=aspnet-mvc-performance" type="application/x-shockwave-flash"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=performance-eng-090417043244-phpapp01&amp;rel=0&amp;stripped_title=aspnet-mvc-performance" /><param name="allowfullscreen" value="true" /></object></p>
<div style="font-size: 11px; font-family: tahoma,arial; height: 26px; padding-top: 2px;">View more <a style="text-decoration:underline;" href="http://www.slideshare.net/">presentations</a> from <a style="text-decoration:underline;" href="http://www.slideshare.net/rudib">rudib</a>.</div>
</div>
<p><b>Additional notes:</b></p>
<p>We cannot assume that only implementing database caching will lead to a significant performance gain before optimizing any other aspects of page&#8217;s rendering. Here&#8217;s a few more metrics for the DUGG application:</p>
<ul>
<li>First run, as in the slides, no optimizations whatsoever: <b>5.9</b> requests / second</li>
<li>Added: Compiled SQL-LINQ queries: <b>6.88</b> requests / second</li>
<li>Added: Fully cached SQL-LINQ queries: <b>7.43</b> requests / second/
<li>
<li>Removed: expression links, replaced with route and actions links. Also fixed path to partials with the full path: <b>112</b> requests/second</li>
</ul>
<p>That still leaves room for the treble performance improvement with URL caching and views that render enumerations.</p>
<p>It&#8217;s one of the general rules of optimizing software that speedups in one part of the application will have a lot of consequences elsewhere which you can&#8217;t really predict. Test, measure, profile, optimize a single hotspot, repeat!</p>
<p><b>Errata (23.4.2009)</b></p>
<p>Thanks to Simone Chiaretta&#8217;s analysis of my results, he&#8217;s <a href="http://codeclimber.net.nz/archive/2009/04/22/how-to-improve-htmlhelper.renderpartial-performances-donrsquot-run-in-debug-mode.aspx">nailed it</a> that I forgot to disable the debug mode for benchmarks (oops!). This disables ASP.NET MVC&#8217;s internal cache for paths to views, rendering my part of optimization notes to replace paths to views with full paths irrelevant. I&#8217;ve re-run all of the benchmarks, removed two slides and added an errata to the end of the slides.</p>
<p>It would be nice if I can be proven wrong on other points as well. <img src='http://blog.whiletrue.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.whiletrue.com/2009/04/aspnet-mvc-performance/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
	</channel>
</rss>
