<?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: Unnecessary function calls inside loops</title>
	<atom:link href="http://dev.enekoalonso.com/2008/11/28/unnecessary-function-calls-inside-loops/feed/" rel="self" type="application/rss+xml" />
	<link>http://dev.enekoalonso.com/2008/11/28/unnecessary-function-calls-inside-loops/</link>
	<description>having fun with code</description>
	<lastBuildDate>Thu, 15 Sep 2011 22:21:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Eneko Alonso</title>
		<link>http://dev.enekoalonso.com/2008/11/28/unnecessary-function-calls-inside-loops/comment-page-1/#comment-12</link>
		<dc:creator>Eneko Alonso</dc:creator>
		<pubDate>Wed, 03 Dec 2008 18:20:03 +0000</pubDate>
		<guid isPermaLink="false">http://dev.enekoalonso.com/?p=31#comment-12</guid>
		<description>Yes, I saw that one too. I agree. Do not rely on compilers. Do your best and they&#039;ll do their best :)</description>
		<content:encoded><![CDATA[<p>Yes, I saw that one too. I agree. Do not rely on compilers. Do your best and they&#8217;ll do their best :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pau Sánchez</title>
		<link>http://dev.enekoalonso.com/2008/11/28/unnecessary-function-calls-inside-loops/comment-page-1/#comment-11</link>
		<dc:creator>Pau Sánchez</dc:creator>
		<pubDate>Wed, 03 Dec 2008 16:59:33 +0000</pubDate>
		<guid isPermaLink="false">http://dev.enekoalonso.com/?p=31#comment-11</guid>
		<description>Well, in fact oriented object languages use to have good implementations for &quot;length&quot; and similar functions (using a variable where length is stored, so once is computed, access is O(1)), no matter if they are interpreted or compiled.

I&#039;m impressed about your example on Safari, I though the implementation of string length would be good.

About &#039;don&#039;t rely on compilers to optimize your programming faults&#039;, check this other article:
&lt;a href=&quot;http://www.codigomanso.com/2008/11/un-error-comun-en-programacion-lenguajes-compilados/&quot; rel=&quot;nofollow&quot;&gt;Un error comun en programacion: lenguages compilados&lt;/a&gt;

The conclusion for G++ is: the compiler is able to optimize strlen, but not other functions that could be optimized as well.

So as you said, is not a good idea to rely or interpreters or compilers.</description>
		<content:encoded><![CDATA[<p>Well, in fact oriented object languages use to have good implementations for &#8220;length&#8221; and similar functions (using a variable where length is stored, so once is computed, access is O(1)), no matter if they are interpreted or compiled.</p>
<p>I&#8217;m impressed about your example on Safari, I though the implementation of string length would be good.</p>
<p>About &#8216;don&#8217;t rely on compilers to optimize your programming faults&#8217;, check this other article:<br />
<a href="http://www.codigomanso.com/2008/11/un-error-comun-en-programacion-lenguajes-compilados/" rel="nofollow">Un error comun en programacion: lenguages compilados</a></p>
<p>The conclusion for G++ is: the compiler is able to optimize strlen, but not other functions that could be optimized as well.</p>
<p>So as you said, is not a good idea to rely or interpreters or compilers.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

