<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>Pattern &amp; Practices</title>
        <link>http://blog.developers.ie/rrawat/category/89.aspx</link>
        <description>Pattern &amp; Practices</description>
        <language>en-IE</language>
        <copyright>Rajendra Rawat</copyright>
        <managingEditor>rajsrawat@yahoo.com</managingEditor>
        <generator>Subtext Version 1.9.5.176</generator>
        <item>
            <title>WSSRA</title>
            <link>http://blog.developers.ie/rrawat/archive/2005/07/28/1565.aspx</link>
            <description>&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Windows Server System Reference Architecture is a Documentation Set that Helps in Design and Deployment of IT Infrastructure or IT Solutions Using Microsoft Technologies.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;WSSRA contains: &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;U&gt;Overview Documents&lt;BR&gt;&lt;/U&gt;&amp;nbsp;Contains Introduction to WSSRA Documents, Standards and Conventions Followed in&amp;nbsp; the Documentation and How the Documentation Can be Leveraged.&lt;BR&gt;&lt;U&gt;Reference Blueprints&lt;/U&gt;&lt;BR&gt;&amp;nbsp;Contains Architectural (Infrastructure Areas Such as Security, Networking, Storage,&amp;nbsp; Management etc.) and Service (Design Options Available for a Given Set of IT Services) Blueprints.&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;U&gt;Implementation Guides&lt;BR&gt;&lt;/U&gt;&amp;nbsp;Contain Reference Blueprints for Implementation of a Solution. The Reference &amp;nbsp;Blueprints are Lab-Tested for Conformation to Design and Architecture Standards.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://go.microsoft.com/fwlink/?LinkId=32645"&gt;&lt;FONT face=Verdana size=2&gt;more&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;&lt;img src="http://blog.developers.ie/rrawat/aggbug/1565.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Rajendra Rawat</dc:creator>
            <guid>http://blog.developers.ie/rrawat/archive/2005/07/28/1565.aspx</guid>
            <pubDate>Thu, 28 Jul 2005 17:20:00 GMT</pubDate>
            <wfw:comment>http://blog.developers.ie/rrawat/comments/1565.aspx</wfw:comment>
            <comments>http://blog.developers.ie/rrawat/archive/2005/07/28/1565.aspx#feedback</comments>
            <slash:comments>12</slash:comments>
            <wfw:commentRss>http://blog.developers.ie/rrawat/comments/commentRss/1565.aspx</wfw:commentRss>
            <trackback:ping>http://blog.developers.ie/rrawat/services/trackbacks/1565.aspx</trackback:ping>
        </item>
        <item>
            <title>Tips for a Successful MSFT Presentation</title>
            <link>http://blog.developers.ie/rrawat/archive/2005/06/28/1494.aspx</link>
            <description>&lt;P&gt;&lt;FONT face=Verdana size=2&gt;If you havn't already this a Must read article&amp;nbsp;&lt;/FONT&gt;&lt;A href="http://www.hanselman.com/blog/content/radiostories/2003/01/22/scottHanselmansTipsForASuccessfulMsftPresentation.html"&gt;&lt;FONT face=Verdana size=2&gt;Scott Hanselman&amp;#8217;s Tips for a Successful MSFT Presentation&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blog.developers.ie/rrawat/aggbug/1494.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Rajendra Rawat</dc:creator>
            <guid>http://blog.developers.ie/rrawat/archive/2005/06/28/1494.aspx</guid>
            <pubDate>Wed, 29 Jun 2005 00:31:00 GMT</pubDate>
            <wfw:comment>http://blog.developers.ie/rrawat/comments/1494.aspx</wfw:comment>
            <comments>http://blog.developers.ie/rrawat/archive/2005/06/28/1494.aspx#feedback</comments>
            <slash:comments>18</slash:comments>
            <wfw:commentRss>http://blog.developers.ie/rrawat/comments/commentRss/1494.aspx</wfw:commentRss>
            <trackback:ping>http://blog.developers.ie/rrawat/services/trackbacks/1494.aspx</trackback:ping>
        </item>
        <item>
            <title>JIT Optimization Myth</title>
            <link>http://blog.developers.ie/rrawat/archive/2005/05/10/752.aspx</link>
            <description>&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Which one of these three loops is the most efficient in C#? &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;1. Foreach over an int array&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;foreach ( int i in MyArray)&lt;BR&gt;&amp;nbsp; Console.WriteLine( i.ToString( ));&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;FONT face=Verdana size=2&gt;2. Simple for over an int array&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;for ( int i = 0; i &amp;lt; MyArray.Length; i++ )&lt;BR&gt;&amp;nbsp; Console.WriteLine( MyArray[i].ToString( ));&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;FONT face=Verdana size=2&gt;3. For over an int array, hoisting out the length value&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;int len = MyArray.Length;&lt;BR&gt;for ( int i = 0; i &amp;lt; len; i++ )&lt;BR&gt;&amp;nbsp; Console.WriteLine( MyArray[i].ToString( ));&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Do you think you will get a speed boost by moving the length calculation out and saving it to a temporary variable, as in the third option?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;WRONG!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;In Fact:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Hoisting in third option should be avoided. As the JIT looks for the pattern in version 1 and 2, and knows how to optimize it. If you pull the value out into a temporary variable , JIT may not optimize it. &lt;BR&gt;see this blog &lt;/FONT&gt;&lt;A href="http://blogs.msdn.com/brada/"&gt;&lt;FONT face=Verdana size=2&gt;http://blogs.msdn.com/brada/&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt; for more details&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;For more performance tips-n-tricks and JIT/GC basics, read this article &lt;BR&gt;&lt;/FONT&gt;&lt;A href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/dotnetperftips.asp"&gt;&lt;FONT face=Verdana size=2&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/dotnetperftips.asp&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;&lt;img src="http://blog.developers.ie/rrawat/aggbug/752.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Rajendra Rawat</dc:creator>
            <guid>http://blog.developers.ie/rrawat/archive/2005/05/10/752.aspx</guid>
            <pubDate>Tue, 10 May 2005 23:30:00 GMT</pubDate>
            <wfw:comment>http://blog.developers.ie/rrawat/comments/752.aspx</wfw:comment>
            <comments>http://blog.developers.ie/rrawat/archive/2005/05/10/752.aspx#feedback</comments>
            <wfw:commentRss>http://blog.developers.ie/rrawat/comments/commentRss/752.aspx</wfw:commentRss>
            <trackback:ping>http://blog.developers.ie/rrawat/services/trackbacks/752.aspx</trackback:ping>
        </item>
    </channel>
</rss>
