<?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 for A howl on the wind...</title>
	<atom:link href="http://tinodidriksen.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://tinodidriksen.com</link>
	<description>The words and ideas of Tino Didriksen</description>
	<lastBuildDate>Tue, 17 Apr 2012 21:03:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>Comment on C++ Convert Int to String Speed by Tino Didriksen</title>
		<link>http://tinodidriksen.com/2010/02/07/cpp-convert-int-to-string-speed/#comment-12552</link>
		<dc:creator>Tino Didriksen</dc:creator>
		<pubDate>Tue, 17 Apr 2012 21:03:45 +0000</pubDate>
		<guid isPermaLink="false">http://tinodidriksen.com/?p=202#comment-12552</guid>
		<description>It&#039;s already shown in the post where it says &quot;Source for the test is at speed-convert-int-to-string.cpp with cycle.h.&quot;
( http://tinodidriksen.com/uploads/code/cpp/speed-convert-int-to-string.cpp + http://tinodidriksen.com/uploads/code/cpp/cycle.h )</description>
		<content:encoded><![CDATA[<p>It&#8217;s already shown in the post where it says &#8220;Source for the test is at speed-convert-int-to-string.cpp with cycle.h.&#8221;<br />
( <a href="http://tinodidriksen.com/uploads/code/cpp/speed-convert-int-to-string.cpp" rel="nofollow">http://tinodidriksen.com/uploads/code/cpp/speed-convert-int-to-string.cpp</a> + <a href="http://tinodidriksen.com/uploads/code/cpp/cycle.h" rel="nofollow">http://tinodidriksen.com/uploads/code/cpp/cycle.h</a> )</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C++ Convert Int to String Speed by Joe</title>
		<link>http://tinodidriksen.com/2010/02/07/cpp-convert-int-to-string-speed/#comment-12551</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Tue, 17 Apr 2012 20:55:03 +0000</pubDate>
		<guid isPermaLink="false">http://tinodidriksen.com/?p=202#comment-12551</guid>
		<description>Hi, can you show source code, on which you tested speed of conversion from int to string?</description>
		<content:encoded><![CDATA[<p>Hi, can you show source code, on which you tested speed of conversion from int to string?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Snippet: Vector to Output Stream by Pierre</title>
		<link>http://tinodidriksen.com/2010/01/31/snippet-vector-to-output-stream/#comment-12536</link>
		<dc:creator>Pierre</dc:creator>
		<pubDate>Mon, 19 Mar 2012 10:59:41 +0000</pubDate>
		<guid isPermaLink="false">http://tinodidriksen.com/?p=169#comment-12536</guid>
		<description>copy(vec.begin(), vec.end(), ostream_iterator(std::cout,&quot;,&quot;);

Work as good as you ask. (You have to add the &quot;[&quot; and &quot;]&quot; manually).</description>
		<content:encoded><![CDATA[<p>copy(vec.begin(), vec.end(), ostream_iterator(std::cout,&#8221;,&#8221;);</p>
<p>Work as good as you ask. (You have to add the &#8220;[" and "]&#8221; manually).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C++ String Compare Performance by Rodrigo</title>
		<link>http://tinodidriksen.com/2011/02/10/cpp-string-compare-performance/#comment-12450</link>
		<dc:creator>Rodrigo</dc:creator>
		<pubDate>Thu, 22 Sep 2011 00:51:15 +0000</pubDate>
		<guid isPermaLink="false">http://tinodidriksen.com/?p=329#comment-12450</guid>
		<description>I personally dislike not only the operator== overloading, but the C++ operator overloading in general. To me they hide way too much what is being done, and it&#039;s easy to neglect optimizations.</description>
		<content:encoded><![CDATA[<p>I personally dislike not only the operator== overloading, but the C++ operator overloading in general. To me they hide way too much what is being done, and it&#8217;s easy to neglect optimizations.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C++ String Compare Performance by Tino Didriksen</title>
		<link>http://tinodidriksen.com/2011/02/10/cpp-string-compare-performance/#comment-12443</link>
		<dc:creator>Tino Didriksen</dc:creator>
		<pubDate>Wed, 14 Sep 2011 08:50:49 +0000</pubDate>
		<guid isPermaLink="false">http://tinodidriksen.com/?p=329#comment-12443</guid>
		<description>Well, I am not very happy with this test. I can reliably reproduce the results, but the results are not what I would expect.

string op== is horrendous. There is no way in my head that a sane implementation of that should be slower than strcmp(), yet it is. And the fact that it&#039;s even slower when comparing to char* tells me they just let the buffer get silently converted to a string, then compare...which is crazy (but it is standard compliant).</description>
		<content:encoded><![CDATA[<p>Well, I am not very happy with this test. I can reliably reproduce the results, but the results are not what I would expect.</p>
<p>string op== is horrendous. There is no way in my head that a sane implementation of that should be slower than strcmp(), yet it is. And the fact that it&#8217;s even slower when comparing to char* tells me they just let the buffer get silently converted to a string, then compare&#8230;which is crazy (but it is standard compliant).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C++ String Compare Performance by Ayyappa</title>
		<link>http://tinodidriksen.com/2011/02/10/cpp-string-compare-performance/#comment-12442</link>
		<dc:creator>Ayyappa</dc:creator>
		<pubDate>Tue, 13 Sep 2011 17:51:09 +0000</pubDate>
		<guid isPermaLink="false">http://tinodidriksen.com/?p=329#comment-12442</guid>
		<description>Hai,

     Recently I also done an performance test on the same aspect.But your Performance check range(based on different envi) is relatively high.Can you please finalize the results in brief synopsis.(something like strcmp()-&gt; which might use memcmp func is faster...).Please finalize a summary on this test.</description>
		<content:encoded><![CDATA[<p>Hai,</p>
<p>     Recently I also done an performance test on the same aspect.But your Performance check range(based on different envi) is relatively high.Can you please finalize the results in brief synopsis.(something like strcmp()-&gt; which might use memcmp func is faster&#8230;).Please finalize a summary on this test.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C++ Include Speed by Tino Didriksen</title>
		<link>http://tinodidriksen.com/2011/08/31/cpp-include-speed/#comment-12436</link>
		<dc:creator>Tino Didriksen</dc:creator>
		<pubDate>Thu, 01 Sep 2011 19:51:59 +0000</pubDate>
		<guid isPermaLink="false">http://tinodidriksen.com/?p=354#comment-12436</guid>
		<description>I thought of that, so I tested it on a real machine and got same relative results. And I did run every compilation 5-7 times to make sure the files were well cached.

Anyway, the conclusion is that it doesn&#039;t matter. If the difference for 10000 almost empty files is a second or two more, then your real world project won&#039;t care whatsoever which include method you use.</description>
		<content:encoded><![CDATA[<p>I thought of that, so I tested it on a real machine and got same relative results. And I did run every compilation 5-7 times to make sure the files were well cached.</p>
<p>Anyway, the conclusion is that it doesn&#8217;t matter. If the difference for 10000 almost empty files is a second or two more, then your real world project won&#8217;t care whatsoever which include method you use.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C++ Include Speed by Nick Porcino</title>
		<link>http://tinodidriksen.com/2011/08/31/cpp-include-speed/#comment-12435</link>
		<dc:creator>Nick Porcino</dc:creator>
		<pubDate>Thu, 01 Sep 2011 19:35:25 +0000</pubDate>
		<guid isPermaLink="false">http://tinodidriksen.com/?p=354#comment-12435</guid>
		<description>Is it possible that file caching or other VM behaviors by VirtualBox is skewing the results from gcc and clang?</description>
		<content:encoded><![CDATA[<p>Is it possible that file caching or other VM behaviors by VirtualBox is skewing the results from gcc and clang?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C++ Convert String to Double Speed by Piotr</title>
		<link>http://tinodidriksen.com/2011/05/28/cpp-convert-string-to-double-speed/#comment-12408</link>
		<dc:creator>Piotr</dc:creator>
		<pubDate>Tue, 02 Aug 2011 11:11:49 +0000</pubDate>
		<guid isPermaLink="false">http://tinodidriksen.com/?p=347#comment-12408</guid>
		<description>Try this one (not mine, but works):
http://www.leapsecond.com/tools/fast_atof.c

It&#039;s a replacement for atof() - much faster.</description>
		<content:encoded><![CDATA[<p>Try this one (not mine, but works):<br />
<a href="http://www.leapsecond.com/tools/fast_atof.c" rel="nofollow">http://www.leapsecond.com/tools/fast_atof.c</a></p>
<p>It&#8217;s a replacement for atof() &#8211; much faster.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C++ Convert String to Int Speed by phax</title>
		<link>http://tinodidriksen.com/2010/02/16/cpp-convert-string-to-int-speed/#comment-12398</link>
		<dc:creator>phax</dc:creator>
		<pubDate>Thu, 14 Jul 2011 14:06:49 +0000</pubDate>
		<guid isPermaLink="false">http://tinodidriksen.com/?p=206#comment-12398</guid>
		<description>Another naive() in asm though, only tested on Linux g++ 4.4.3, not sure if VC++ supports this semantics for inlining asm.



long long int  __inline__  naive2(const char * p) 
{
  int result(0);
  int neg(0);

  // result -&gt; ecx, p -&gt; ebx
  asm   (
       &quot;movl %0, %%ecx\t\n&quot;
       &quot;movl %2, %%ebx\t\n&quot;
       &quot;movl $0, %%edx\t\n&quot;
       &quot;movb (%%ebx),%%dl\t\n&quot;
       &quot;subb $45, %%dl\t\n&quot;       
       &quot;jnz  loop1\t\n&quot;
       &quot;movl $1, %1\t\n&quot;
       &quot;incl %%ebx\t\n&quot;
       &quot;loop1:\t\n&quot;       
       &quot;movl $0, %%edx\t\n&quot;
       &quot;movb (%%ebx), %%dl\t\n&quot;
       &quot;testb %%dl,%%dl\t\n&quot;
       &quot;jz exitloop1\t\n&quot;
       &quot;subb $48, %%dl\t\n&quot;
       &quot;movl %%ecx, %%eax\t\n&quot;
       &quot;shll  $3,%%ecx\t\n&quot;
       &quot;addl %%eax, %%ecx\t\n&quot;
       &quot;addl %%eax, %%ecx\t\n&quot;
       &quot;addl %%edx,%%ecx\t\n&quot;
       &quot;incl %%ebx\t\n&quot;
       &quot;jmp loop1\t\n&quot;
       &quot;exitloop1:\t\n&quot;
       &quot;movl %%ecx, %0\t\n&quot;
       :
       &quot;=r&quot; (result), &quot;=m&quot; (neg) 
       :
       &quot;r&quot;(p),&quot;0&quot;(result), &quot;m&quot; (neg)
       : &quot;%ebx&quot;, &quot;%eax&quot;, &quot;%ecx&quot;, &quot;%edx&quot;
       );
  return neg?-result:result;
}</description>
		<content:encoded><![CDATA[<p>Another naive() in asm though, only tested on Linux g++ 4.4.3, not sure if VC++ supports this semantics for inlining asm.</p>
<p>long long int  __inline__  naive2(const char * p)<br />
{<br />
  int result(0);<br />
  int neg(0);</p>
<p>  // result -&gt; ecx, p -&gt; ebx<br />
  asm   (<br />
       &#8220;movl %0, %%ecx\t\n&#8221;<br />
       &#8220;movl %2, %%ebx\t\n&#8221;<br />
       &#8220;movl $0, %%edx\t\n&#8221;<br />
       &#8220;movb (%%ebx),%%dl\t\n&#8221;<br />
       &#8220;subb $45, %%dl\t\n&#8221;<br />
       &#8220;jnz  loop1\t\n&#8221;<br />
       &#8220;movl $1, %1\t\n&#8221;<br />
       &#8220;incl %%ebx\t\n&#8221;<br />
       &#8220;loop1:\t\n&#8221;<br />
       &#8220;movl $0, %%edx\t\n&#8221;<br />
       &#8220;movb (%%ebx), %%dl\t\n&#8221;<br />
       &#8220;testb %%dl,%%dl\t\n&#8221;<br />
       &#8220;jz exitloop1\t\n&#8221;<br />
       &#8220;subb $48, %%dl\t\n&#8221;<br />
       &#8220;movl %%ecx, %%eax\t\n&#8221;<br />
       &#8220;shll  $3,%%ecx\t\n&#8221;<br />
       &#8220;addl %%eax, %%ecx\t\n&#8221;<br />
       &#8220;addl %%eax, %%ecx\t\n&#8221;<br />
       &#8220;addl %%edx,%%ecx\t\n&#8221;<br />
       &#8220;incl %%ebx\t\n&#8221;<br />
       &#8220;jmp loop1\t\n&#8221;<br />
       &#8220;exitloop1:\t\n&#8221;<br />
       &#8220;movl %%ecx, %0\t\n&#8221;<br />
       :<br />
       &#8220;=r&#8221; (result), &#8220;=m&#8221; (neg)<br />
       :<br />
       &#8220;r&#8221;(p),&#8221;0&#8243;(result), &#8220;m&#8221; (neg)<br />
       : &#8220;%ebx&#8221;, &#8220;%eax&#8221;, &#8220;%ecx&#8221;, &#8220;%edx&#8221;<br />
       );<br />
  return neg?-result:result;<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

