<?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: JavaScript optimization, are chained calls expensive?</title>
	<atom:link href="http://dossy.org/2006/03/javascript-optimization-are-chained-calls-expensive/feed/" rel="self" type="application/rss+xml" />
	<link>http://dossy.org/2006/03/javascript-optimization-are-chained-calls-expensive/</link>
	<description>Everything that comes out of Dossy, from the strange to the banal.</description>
	<lastBuildDate>Fri, 06 Nov 2009 22:44:13 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: sree</title>
		<link>http://dossy.org/2006/03/javascript-optimization-are-chained-calls-expensive/comment-page-1/#comment-346</link>
		<dc:creator>sree</dc:creator>
		<pubDate>Fri, 10 Mar 2006 03:32:49 +0000</pubDate>
		<guid isPermaLink="false">http://dossy.org/archives/000248.html#comment-346</guid>
		<description>Hey Dossy, I hadn&#039;t finished part 3, where I get into the numbers, but I&#039;d think 30% is still a pretty big deal, IF you&#039;re writing applications at scale - in the trivial case, totally agree with you - who cares - that&#039;s indeed part of the point of Javascript.

Also, dom/activex/livescript nested references are even slower than &quot;native&quot; javascript object ones - so that can have more of an impact.

Additionally, none of the browser javascript interpreters can do squat meaningfully to optimize (even JScript.NET, as I&#039;ll show in pt 3) because unfortunately, Javascript is inherently a dynamic language - the function invocation (or even property invocation) may cause volatility (e.g. self-modification) with respect to the calling function/object.  Doesn&#039;t mean you CAN&#039;T deal with it, but none do.

Incidentally, though, I wasn&#039;t trying to make a big deal out that optimization, per se - I was only trying to suggest that understanding the WHY of the perf delta will help you understand the value of other language features like the &quot;prototype&quot; property.

Hope that helps clarify :)</description>
		<content:encoded><![CDATA[<p>Hey Dossy, I hadn&#8217;t finished part 3, where I get into the numbers, but I&#8217;d think 30% is still a pretty big deal, IF you&#8217;re writing applications at scale &#8211; in the trivial case, totally agree with you &#8211; who cares &#8211; that&#8217;s indeed part of the point of Javascript.</p>
<p>Also, dom/activex/livescript nested references are even slower than &#8220;native&#8221; javascript object ones &#8211; so that can have more of an impact.</p>
<p>Additionally, none of the browser javascript interpreters can do squat meaningfully to optimize (even JScript.NET, as I&#8217;ll show in pt 3) because unfortunately, Javascript is inherently a dynamic language &#8211; the function invocation (or even property invocation) may cause volatility (e.g. self-modification) with respect to the calling function/object.  Doesn&#8217;t mean you CAN&#8217;T deal with it, but none do.</p>
<p>Incidentally, though, I wasn&#8217;t trying to make a big deal out that optimization, per se &#8211; I was only trying to suggest that understanding the WHY of the perf delta will help you understand the value of other language features like the &#8220;prototype&#8221; property.</p>
<p>Hope that helps clarify <img src='http://dossy.org/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
