<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>Performance Quiz #4 -- Of Sets and Sundry -- Solution</title><link>http://blogs.msdn.com/ricom/archive/2004/08/19/performance-quiz-4-of-sets-and-sundry-solution.aspx</link><description>Well thank you all very much for those great responses, I was very impressed! What I did to get my answers was build a little harness with the test cases and then used QueryPerformanceCounter and friends to get the most accurate times I could. Then seperately</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Performance Quiz #4 -- Of Sets and Sundry -- Solution</title><link>http://blogs.msdn.com/ricom/archive/2004/08/19/performance-quiz-4-of-sets-and-sundry-solution.aspx#217594</link><pubDate>Fri, 20 Aug 2004 07:02:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:217594</guid><dc:creator>Ryan Heath</dc:creator><description>Hi Rico,&lt;br&gt;&lt;br&gt;Why the [System.Runtime.CompilerServices.MethodImplAttribute(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] before each test method?&lt;br&gt;&lt;br&gt;// Ryan</description></item><item><title>re: Performance Quiz #4 -- Of Sets and Sundry -- Solution</title><link>http://blogs.msdn.com/ricom/archive/2004/08/19/performance-quiz-4-of-sets-and-sundry-solution.aspx#217873</link><pubDate>Fri, 20 Aug 2004 18:27:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:217873</guid><dc:creator>Rico Mariani</dc:creator><description>Force of habit on the attribute.  In other cases my test functions can be very small and they then get inlined directly into Main (i.e. the harness) which makes it harder to see clear results in the profile.&lt;br&gt;&lt;br&gt;In this case there was basically no chance of inlining so it's moot.  I thought of removing them but I thought it's good practice anyway in perf benchmarks so I left it.</description></item><item><title>re: Performance Quiz #4 -- Of Sets and Sundry -- Solution</title><link>http://blogs.msdn.com/ricom/archive/2004/08/19/performance-quiz-4-of-sets-and-sundry-solution.aspx#217909</link><pubDate>Fri, 20 Aug 2004 19:35:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:217909</guid><dc:creator>Matthew W. Jackson</dc:creator><description>I'd leave them just in case future versions of the CLR decide to become more aggressive about inlining.&lt;br&gt;&lt;br&gt;There's no clear spec in the CLR on which methods will be inlined (I suppose it's very machine- and implementation-dependant), although I think you posted some guidlines earlier regarding the MS implementation.&lt;br&gt;&lt;br&gt;I'd still like a &amp;quot;MethodImplOptions.FavorInlining&amp;quot;&lt;br&gt;even if an implementation was free to ignore it completely.  I wouldn't mind the MS implementation ignoring it, but I'd like to be able to at least think I have some control over the decision.  &amp;lt;g&amp;gt;</description></item><item><title>re: Performance Quiz #4 -- Of Sets and Sundry -- Solution</title><link>http://blogs.msdn.com/ricom/archive/2004/08/19/performance-quiz-4-of-sets-and-sundry-solution.aspx#223984</link><pubDate>Wed, 01 Sep 2004 15:28:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:223984</guid><dc:creator>Akshay Kumar</dc:creator><description>Do we get to download code for this solution somewhere ?&lt;br&gt;Regards,&lt;br&gt;Akshay</description></item><item><title>应用System.Runtime.CompilerServices.MethodImplOptions.NoInlining特性</title><link>http://blogs.msdn.com/ricom/archive/2004/08/19/performance-quiz-4-of-sets-and-sundry-solution.aspx#8836151</link><pubDate>Wed, 06 Aug 2008 08:40:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8836151</guid><dc:creator>Avatasia</dc:creator><description>&lt;p&gt;在参考某些.Net代码的时候，我们有时会看到某些方法，甚至属性的get或set代码片断上会附加[System.Runtime.CompilerServices.MethodImpl(Syst...&lt;/p&gt;
</description></item></channel></rss>