<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: A case study in micro-optimization</title>
	<atom:link href="http://www.indiangeek.net/2008/08/29/a-case-study-in-micro-optimization/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.indiangeek.net/2008/08/29/a-case-study-in-micro-optimization/</link>
	<description>Perspectives on Computer Science and Software Engineering</description>
	<lastBuildDate>Tue, 07 Sep 2010 07:32:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Joe</title>
		<link>http://www.indiangeek.net/2008/08/29/a-case-study-in-micro-optimization/comment-page-1/#comment-2510</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Fri, 04 Sep 2009 13:00:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.indiangeek.net/?p=393#comment-2510</guid>
		<description>While I like the solution, it&#039;s not for the challange: I think original challange was &quot;write a counter function that counts from 1 to max but only returns numbers whose digits don’t repeat&quot;. I don&#039;t see how your code returns anything.</description>
		<content:encoded><![CDATA[<p>While I like the solution, it&#8217;s not for the challange: I think original challange was &#8220;write a counter function that counts from 1 to max but only returns numbers whose digits don’t repeat&#8221;. I don&#8217;t see how your code returns anything.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dustin</title>
		<link>http://www.indiangeek.net/2008/08/29/a-case-study-in-micro-optimization/comment-page-1/#comment-2505</link>
		<dc:creator>dustin</dc:creator>
		<pubDate>Thu, 13 Aug 2009 15:40:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.indiangeek.net/?p=393#comment-2505</guid>
		<description>@Madhavrao: Did you even read the post? :-) It was all about optimizing the code for the fastest results.

Nice post, found this post while looking for the fastest way to read digits into C#. Not quite the answer, but interesting read.</description>
		<content:encoded><![CDATA[<p>@Madhavrao: Did you even read the post? <img src='http://www.indiangeek.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  It was all about optimizing the code for the fastest results.</p>
<p>Nice post, found this post while looking for the fastest way to read digits into C#. Not quite the answer, but interesting read.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sijin</title>
		<link>http://www.indiangeek.net/2008/08/29/a-case-study-in-micro-optimization/comment-page-1/#comment-2457</link>
		<dc:creator>sijin</dc:creator>
		<pubDate>Thu, 09 Apr 2009 10:38:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.indiangeek.net/?p=393#comment-2457</guid>
		<description>Hi Madhav,

I was looking for the fastest solution :) The string and list based solutions are the slowest so I didn&#039;t event mention them in the blog post.</description>
		<content:encoded><![CDATA[<p>Hi Madhav,</p>
<p>I was looking for the fastest solution <img src='http://www.indiangeek.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  The string and list based solutions are the slowest so I didn&#8217;t event mention them in the blog post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhavrao</title>
		<link>http://www.indiangeek.net/2008/08/29/a-case-study-in-micro-optimization/comment-page-1/#comment-2456</link>
		<dc:creator>Madhavrao</dc:creator>
		<pubDate>Thu, 09 Apr 2009 09:08:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.indiangeek.net/?p=393#comment-2456</guid>
		<description>I think you should try this:

class Program
{
    static void Main(string[] args)
    {
        for(int i = 0; i &lt; 10000; i++)
        {
            if (IsValidNumber(i))
                Console.Write(&quot;{0},&quot;, i);
        }

        Console.ReadLine(); 
    }

    static bool IsValidNumber(Int32 number)
    {
        String sNumber = number.ToString();
        var numbers = new List(sNumber.ToCharArray());
        return numbers.Distinct().Count() == sNumber.Length; 
    }
}</description>
		<content:encoded><![CDATA[<p>I think you should try this:</p>
<p>class Program<br />
{<br />
    static void Main(string[] args)<br />
    {<br />
        for(int i = 0; i &lt; 10000; i++)<br />
        {<br />
            if (IsValidNumber(i))<br />
                Console.Write(&#8220;{0},&#8221;, i);<br />
        }</p>
<p>        Console.ReadLine();<br />
    }</p>
<p>    static bool IsValidNumber(Int32 number)<br />
    {<br />
        String sNumber = number.ToString();<br />
        var numbers = new List(sNumber.ToCharArray());<br />
        return numbers.Distinct().Count() == sNumber.Length;<br />
    }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vivek</title>
		<link>http://www.indiangeek.net/2008/08/29/a-case-study-in-micro-optimization/comment-page-1/#comment-2337</link>
		<dc:creator>Vivek</dc:creator>
		<pubDate>Thu, 16 Oct 2008 17:59:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.indiangeek.net/?p=393#comment-2337</guid>
		<description>Interesting read!</description>
		<content:encoded><![CDATA[<p>Interesting read!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sijin</title>
		<link>http://www.indiangeek.net/2008/08/29/a-case-study-in-micro-optimization/comment-page-1/#comment-2325</link>
		<dc:creator>sijin</dc:creator>
		<pubDate>Fri, 29 Aug 2008 19:34:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.indiangeek.net/?p=393#comment-2325</guid>
		<description>Hi Bob,

Nice to see that you read my post, your solution was what got me started on this in the first place. Thanks for clarifying about your solution.</description>
		<content:encoded><![CDATA[<p>Hi Bob,</p>
<p>Nice to see that you read my post, your solution was what got me started on this in the first place. Thanks for clarifying about your solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Lee</title>
		<link>http://www.indiangeek.net/2008/08/29/a-case-study-in-micro-optimization/comment-page-1/#comment-2324</link>
		<dc:creator>Bob Lee</dc:creator>
		<pubDate>Fri, 29 Aug 2008 18:52:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.indiangeek.net/?p=393#comment-2324</guid>
		<description>FWIW, my solution does generate the #s in order and does find the biggest gap.</description>
		<content:encoded><![CDATA[<p>FWIW, my solution does generate the #s in order and does find the biggest gap.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A case study in micro-optimization (Generating permutations) - Sijin Joseph's blog</title>
		<link>http://www.indiangeek.net/2008/08/29/a-case-study-in-micro-optimization/comment-page-1/#comment-2323</link>
		<dc:creator>A case study in micro-optimization (Generating permutations) - Sijin Joseph's blog</dc:creator>
		<pubDate>Fri, 29 Aug 2008 16:48:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.indiangeek.net/?p=393#comment-2323</guid>
		<description>[...] C# over at my personal blog. Couldn&#039;t bear the thought of the fastest solution being a Java one ;-)&#160;http://www.indiangeek.net/2008/08/29/a-case-study-in-micro-optimization/    Published Aug 29 2008, 10:43 PM by Sijin Joseph Filed under: General Software [...]</description>
		<content:encoded><![CDATA[<p>[...] C# over at my personal blog. Couldn&#8217;t bear the thought of the fastest solution being a Java one <img src='http://www.indiangeek.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> &nbsp;http://www.indiangeek.net/2008/08/29/a-case-study-in-micro-optimization/    Published Aug 29 2008, 10:43 PM by Sijin Joseph Filed under: General Software [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
