<?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: Each Second Counts, or Not</title>
	<atom:link href="http://www.vinylfox.com/each-second-counts-or-not/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vinylfox.com/each-second-counts-or-not/</link>
	<description>The Playground of VinylFox (Shea Frederick)</description>
	<lastBuildDate>Sat, 14 Jan 2012 23:06:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Each Second Counts, or Not at found_drama</title>
		<link>http://www.vinylfox.com/each-second-counts-or-not/comment-page-1/#comment-7507</link>
		<dc:creator>Each Second Counts, or Not at found_drama</dc:creator>
		<pubDate>Sat, 18 Sep 2010 01:17:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.vinylfox.com/?p=741#comment-7507</guid>
		<description>[...] Second Counts, or Not  Each Second Counts, or Not: The moral of the story here is to think simple when trying to optimize code, otherwise we end up [...]</description>
		<content:encoded><![CDATA[<p>[...] Second Counts, or Not  Each Second Counts, or Not: The moral of the story here is to think simple when trying to optimize code, otherwise we end up [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shea Frederick</title>
		<link>http://www.vinylfox.com/each-second-counts-or-not/comment-page-1/#comment-7373</link>
		<dc:creator>Shea Frederick</dc:creator>
		<pubDate>Mon, 16 Aug 2010 19:20:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.vinylfox.com/?p=741#comment-7373</guid>
		<description>Thanks James. There is just a part of me that hates duplicating common code for the sake of a var existing or not. Ive done it before and it always came back to bite me in the ass.</description>
		<content:encoded><![CDATA[<p>Thanks James. There is just a part of me that hates duplicating common code for the sake of a var existing or not. Ive done it before and it always came back to bite me in the ass.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Dempster</title>
		<link>http://www.vinylfox.com/each-second-counts-or-not/comment-page-1/#comment-7314</link>
		<dc:creator>James Dempster</dc:creator>
		<pubDate>Tue, 03 Aug 2010 18:32:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.vinylfox.com/?p=741#comment-7314</guid>
		<description>I wonder how much faster it would be if we moved the if statement outside of the loop.

&lt;code&gt;
Ext.each = function(array, fn, scope){
    if(Ext.isEmpty(array, true)){
        return;
    }
    if(!Ext.isIterable(array) &#124;&#124; Ext.isPrimitive(array)){
        array = [array];
    }
    if (scope) {
        for(var i = 0, len = array.length; i &lt; len; i++){
            if(fn.call(scope, array[i], i, array) === false){
                return i;
            }
        }
    } else {
        for(var i = 0, len = array.length; i &lt; len; i++){
            if(fn(array[i], i, array) === false){
                return i;
            }
        }
    }
};
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I wonder how much faster it would be if we moved the if statement outside of the loop.</p>
<p><code><br />
Ext.each = function(array, fn, scope){<br />
    if(Ext.isEmpty(array, true)){<br />
        return;<br />
    }<br />
    if(!Ext.isIterable(array) || Ext.isPrimitive(array)){<br />
        array = [array];<br />
    }<br />
    if (scope) {<br />
        for(var i = 0, len = array.length; i &lt; len; i++){<br />
            if(fn.call(scope, array[i], i, array) === false){<br />
                return i;<br />
            }<br />
        }<br />
    } else {<br />
        for(var i = 0, len = array.length; i &lt; len; i++){<br />
            if(fn(array[i], i, array) === false){<br />
                return i;<br />
            }<br />
        }<br />
    }<br />
};<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tweets that mention Each Second Counts, or Not &#124; VinylFox -- Topsy.com</title>
		<link>http://www.vinylfox.com/each-second-counts-or-not/comment-page-1/#comment-7294</link>
		<dc:creator>Tweets that mention Each Second Counts, or Not &#124; VinylFox -- Topsy.com</dc:creator>
		<pubDate>Thu, 29 Jul 2010 17:53:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.vinylfox.com/?p=741#comment-7294</guid>
		<description>[...] This post was mentioned on Twitter by Jay Garcia, Mitchell Simoens. Mitchell Simoens said: Quick blog post from @VinylFox about scope. Scope is one of those things that always comes up. http://bit.ly/ah0awE [...]</description>
		<content:encoded><![CDATA[<p>[...] This post was mentioned on Twitter by Jay Garcia, Mitchell Simoens. Mitchell Simoens said: Quick blog post from @VinylFox about scope. Scope is one of those things that always comes up. <a href="http://bit.ly/ah0awE" rel="nofollow">http://bit.ly/ah0awE</a> [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

