<?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 Closure Performance Test</title>
	<atom:link href="http://blog.java2script.org/2006/02/09/javascript-closure-performance-test/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.java2script.org/2006/02/09/javascript-closure-performance-test/</link>
	<description>Reusing existed Java codes into JavaScripts</description>
	<lastBuildDate>Tue, 07 Sep 2010 01:10:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Zhou Renjian</title>
		<link>http://blog.java2script.org/2006/02/09/javascript-closure-performance-test/#comment-1124</link>
		<dc:creator>Zhou Renjian</dc:creator>
		<pubDate>Fri, 19 Jan 2007 17:06:39 +0000</pubDate>
		<guid isPermaLink="false">http://j2s.sourceforge.net/blog/2006/02/09/javascript-closure-performance-test/#comment-1124</guid>
		<description>Hi Xavier,
Thanks for pointing out that my earlier concept of closure was incorrect. I think I was testing scope performance rather than closure performance at that time.</description>
		<content:encoded><![CDATA[<p>Hi Xavier,<br />
Thanks for pointing out that my earlier concept of closure was incorrect. I think I was testing scope performance rather than closure performance at that time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xavier</title>
		<link>http://blog.java2script.org/2006/02/09/javascript-closure-performance-test/#comment-1121</link>
		<dc:creator>Xavier</dc:creator>
		<pubDate>Thu, 18 Jan 2007 13:53:27 +0000</pubDate>
		<guid isPermaLink="false">http://j2s.sourceforge.net/blog/2006/02/09/javascript-closure-performance-test/#comment-1121</guid>
		<description>Hi,

I am wondering if your test uses global variables rather than closures. Scope of  function withClosure() is document&#039;s root which means a global scope and not a specific scope kept in memory. I think a closure test should seams like that :

function withClosure () {
var i = 0;
var count = 1000000;
var num = 0;
function incClosure() {
num++;
}
while (i++ &lt; count) incClosure();
}</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am wondering if your test uses global variables rather than closures. Scope of  function withClosure() is document&#8217;s root which means a global scope and not a specific scope kept in memory. I think a closure test should seams like that :</p>
<p>function withClosure () {<br />
var i = 0;<br />
var count = 1000000;<br />
var num = 0;<br />
function incClosure() {<br />
num++;<br />
}<br />
while (i++ < count) incClosure();<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
