<?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: The REAL reason you need to var-scope your local CFC function variables</title>
	<atom:link href="http://www.webapper.com/blog/index.php/2007/02/09/the-real-reason-you-need-to-varscope-your-local-cfc-function-variables/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webapper.com/blog/index.php/2007/02/09/the-real-reason-you-need-to-varscope-your-local-cfc-function-variables/</link>
	<description>Web Application Engineers</description>
	<lastBuildDate>Tue, 31 Aug 2010 09:56:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Darren Cook</title>
		<link>http://www.webapper.com/blog/index.php/2007/02/09/the-real-reason-you-need-to-varscope-your-local-cfc-function-variables/comment-page-1/#comment-485</link>
		<dc:creator>Darren Cook</dc:creator>
		<pubDate>Wed, 17 Oct 2007 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.webapper.net/blog/index.cfm/2007/6/29/The-REAL-reason-you-need-to-varscope-your-local-CFC-function-variables#comment-485</guid>
		<description>I tried the test suite out and found as others have that using var was definitely the fastest. However I was curious what performance was like for the &#039;var local = StructNew()&#039; and &#039;use the ARGUMENTS scope as a local scope&#039; ideas (see http://www.webapper.net/index.cfm/2007/2/5/The-VAR-keyword-is-idiotic). I enhanced the test app with scenarios for those, and found that they were quite a bit slower than using var, though still a smidge faster than using nothing. I&#039;ll be choosing to use var then, as it&#039;s no worse a discipline to develop than scoping everything.</description>
		<content:encoded><![CDATA[<p>I tried the test suite out and found as others have that using var was definitely the fastest. However I was curious what performance was like for the &#8216;var local = StructNew()&#8217; and &#8216;use the ARGUMENTS scope as a local scope&#8217; ideas (see <a href="http://www.webapper.net/index.cfm/2007/2/5/The-VAR-keyword-is-idiotic)" rel="nofollow">http://www.webapper.net/index.cfm/2007/2/5/The-VAR-keyword-is-idiotic)</a>. I enhanced the test app with scenarios for those, and found that they were quite a bit slower than using var, though still a smidge faster than using nothing. I&#8217;ll be choosing to use var then, as it&#8217;s no worse a discipline to develop than scoping everything.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://www.webapper.com/blog/index.php/2007/02/09/the-real-reason-you-need-to-varscope-your-local-cfc-function-variables/comment-page-1/#comment-484</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Sat, 06 Oct 2007 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.webapper.net/blog/index.cfm/2007/6/29/The-REAL-reason-you-need-to-varscope-your-local-CFC-function-variables#comment-484</guid>
		<description>Downloaded the test. It&#039;s working very good. Thx you, Mr Vanek.

http://myflowerz.info:</description>
		<content:encoded><![CDATA[<p>Downloaded the test. It&#8217;s working very good. Thx you, Mr Vanek.</p>
<p><a href="http://myflowerz.info" rel="nofollow">http://myflowerz.info</a>:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hector</title>
		<link>http://www.webapper.com/blog/index.php/2007/02/09/the-real-reason-you-need-to-varscope-your-local-cfc-function-variables/comment-page-1/#comment-483</link>
		<dc:creator>hector</dc:creator>
		<pubDate>Sun, 13 May 2007 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.webapper.net/blog/index.cfm/2007/6/29/The-REAL-reason-you-need-to-varscope-your-local-CFC-function-variables#comment-483</guid>
		<description>Hi from Madrid,
 
I downloaded the test. For linux, I had to rename
application.cfm to Application.cfm.

I had to put 
&lt;cfsetting enablecfoutputonly=&quot;yes&quot; /&gt;
in the Application.cfm so that those *terrible cfc-white- spaces* didn&#039;t spoil the test.

in all tests:
cfscript is faster inline and in var-scoped-cfc.
cftags are faster on unscoped-cfc</description>
		<content:encoded><![CDATA[<p>Hi from Madrid,</p>
<p>I downloaded the test. For linux, I had to rename<br />
application.cfm to Application.cfm.</p>
<p>I had to put<br />
&lt;cfsetting enablecfoutputonly=&quot;yes&quot; /&gt;<br />
in the Application.cfm so that those *terrible cfc-white- spaces* didn&#8217;t spoil the test.</p>
<p>in all tests:<br />
cfscript is faster inline and in var-scoped-cfc.<br />
cftags are faster on unscoped-cfc</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tyson Vanek</title>
		<link>http://www.webapper.com/blog/index.php/2007/02/09/the-real-reason-you-need-to-varscope-your-local-cfc-function-variables/comment-page-1/#comment-482</link>
		<dc:creator>Tyson Vanek</dc:creator>
		<pubDate>Thu, 15 Mar 2007 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.webapper.net/blog/index.cfm/2007/6/29/The-REAL-reason-you-need-to-varscope-your-local-CFC-function-variables#comment-482</guid>
		<description>Kevin,

You&#039;re absolutely right.  There&#039;s an orphaned reference to another CFC I had been using in a slightly modified version of this test application.  I have corrected the files in the .ZIP so this won&#039;t be an issue for other users.

Thanks for pointing it out.  :)</description>
		<content:encoded><![CDATA[<p>Kevin,</p>
<p>You&#8217;re absolutely right.  There&#8217;s an orphaned reference to another CFC I had been using in a slightly modified version of this test application.  I have corrected the files in the .ZIP so this won&#8217;t be an issue for other users.</p>
<p>Thanks for pointing it out.  <img src='http://www.webapper.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin penny</title>
		<link>http://www.webapper.com/blog/index.php/2007/02/09/the-real-reason-you-need-to-varscope-your-local-cfc-function-variables/comment-page-1/#comment-479</link>
		<dc:creator>Kevin penny</dc:creator>
		<pubDate>Thu, 08 Mar 2007 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.webapper.net/blog/index.cfm/2007/6/29/The-REAL-reason-you-need-to-varscope-your-local-CFC-function-variables#comment-479</guid>
		<description>so if this is not the correct url to get the zip - to get the udf needed to run the app - there where is it??

http://www.coldfusionmaster.com/varScopeTestApp.zip</description>
		<content:encoded><![CDATA[<p>so if this is not the correct url to get the zip &#8211; to get the udf needed to run the app &#8211; there where is it??</p>
<p><a href="http://www.coldfusionmaster.com/varScopeTestApp.zip" rel="nofollow">http://www.coldfusionmaster.com/varScopeTestApp.zip</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tyson Vanek</title>
		<link>http://www.webapper.com/blog/index.php/2007/02/09/the-real-reason-you-need-to-varscope-your-local-cfc-function-variables/comment-page-1/#comment-480</link>
		<dc:creator>Tyson Vanek</dc:creator>
		<pubDate>Thu, 08 Mar 2007 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.webapper.net/blog/index.cfm/2007/6/29/The-REAL-reason-you-need-to-varscope-your-local-CFC-function-variables#comment-480</guid>
		<description>Kevin,

That is the correct URL for downloading the test application.  The .ZIP was updated at that location with the proper CFC (test.cfc) used by the application.  You can download the same file by clicking on the &quot;Download&quot; link supplied in the line of links following the original post.  Either way, you should end up with the test application.  If not, please let me know.</description>
		<content:encoded><![CDATA[<p>Kevin,</p>
<p>That is the correct URL for downloading the test application.  The .ZIP was updated at that location with the proper CFC (test.cfc) used by the application.  You can download the same file by clicking on the &quot;Download&quot; link supplied in the line of links following the original post.  Either way, you should end up with the test application.  If not, please let me know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin penny</title>
		<link>http://www.webapper.com/blog/index.php/2007/02/09/the-real-reason-you-need-to-varscope-your-local-cfc-function-variables/comment-page-1/#comment-481</link>
		<dc:creator>Kevin penny</dc:creator>
		<pubDate>Thu, 08 Mar 2007 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.webapper.net/blog/index.cfm/2007/6/29/The-REAL-reason-you-need-to-varscope-your-local-CFC-function-variables#comment-481</guid>
		<description>Ok - after looking at it a bit, I just removed the call to the &#039;application.cfc.cfcUDF = createObject(&quot;component&quot;, &quot;udf&quot;);&#039; in the application.cfm - 

(and again later to set that to the app scope - )

Worked great after that - thanks!</description>
		<content:encoded><![CDATA[<p>Ok &#8211; after looking at it a bit, I just removed the call to the &#8216;application.cfc.cfcUDF = createObject(&quot;component&quot;, &quot;udf&quot;);&#8217; in the application.cfm &#8211; </p>
<p>(and again later to set that to the app scope &#8211; )</p>
<p>Worked great after that &#8211; thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tyson Vanek</title>
		<link>http://www.webapper.com/blog/index.php/2007/02/09/the-real-reason-you-need-to-varscope-your-local-cfc-function-variables/comment-page-1/#comment-470</link>
		<dc:creator>Tyson Vanek</dc:creator>
		<pubDate>Fri, 09 Feb 2007 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.webapper.net/blog/index.cfm/2007/6/29/The-REAL-reason-you-need-to-varscope-your-local-CFC-function-variables#comment-470</guid>
		<description>By the way, I should also point out that the performance gaps continue to increase for each variable within the loop.  If you modify the supplied test application to set 2 or 3 or 4 local variables, the performance difference becomes even more evident.</description>
		<content:encoded><![CDATA[<p>By the way, I should also point out that the performance gaps continue to increase for each variable within the loop.  If you modify the supplied test application to set 2 or 3 or 4 local variables, the performance difference becomes even more evident.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Nelson</title>
		<link>http://www.webapper.com/blog/index.php/2007/02/09/the-real-reason-you-need-to-varscope-your-local-cfc-function-variables/comment-page-1/#comment-471</link>
		<dc:creator>Steve Nelson</dc:creator>
		<pubDate>Fri, 09 Feb 2007 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.webapper.net/blog/index.cfm/2007/6/29/The-REAL-reason-you-need-to-varscope-your-local-CFC-function-variables#comment-471</guid>
		<description>Sigh.</description>
		<content:encoded><![CDATA[<p>Sigh.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Nelson</title>
		<link>http://www.webapper.com/blog/index.php/2007/02/09/the-real-reason-you-need-to-varscope-your-local-cfc-function-variables/comment-page-1/#comment-472</link>
		<dc:creator>Steve Nelson</dc:creator>
		<pubDate>Fri, 09 Feb 2007 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.webapper.net/blog/index.cfm/2007/6/29/The-REAL-reason-you-need-to-varscope-your-local-CFC-function-variables#comment-472</guid>
		<description>This is crazy. On top of potentially corrupting data when using application scoped CFCs, performance is killed when not using it.

btw, i started upgrading Michael&#039;s &quot;VarScoper&quot; tool to handle EVERY potential CF7 tag along with handle included files inside of a cfc.

Suddenly this tool is going to become required for every CF developer. LAME!</description>
		<content:encoded><![CDATA[<p>This is crazy. On top of potentially corrupting data when using application scoped CFCs, performance is killed when not using it.</p>
<p>btw, i started upgrading Michael&#8217;s &quot;VarScoper&quot; tool to handle EVERY potential CF7 tag along with handle included files inside of a cfc.</p>
<p>Suddenly this tool is going to become required for every CF developer. LAME!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
