If you don't scope your local variables does the page run slower?
IE. #variables.foo# vs. #foo#
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
In theory, yes, as ColdFusion will have to hunt through the various scopes
to find the exact variable that you're referencing.
Whether it's noticeable or not.. hard to say.
From the CF8 docs (
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Variables_32.html
):
Because
g...@getrailo.com
+41 76 5680 231 www.getrailo.com
-Ursprüngliche Nachricht-
Von: Charlie Griefer [mailto:charlie.grie...@gmail.com]
Gesendet: Donnerstag, 10. Dezember 2009 16:59
An: cf-talk
Betreff: Re: scoping and speed
In theory, yes, as ColdFusion will have to hunt through
out there, do what creates the most manageable,
self-documenting code. The performance results will most likely be
negligible.
~Brad
Original Message
Subject: Re: scoping and speed
From: Charlie Griefer charlie.grie...@gmail.com
Date: Thu, December 10, 2009 9:59 am
To: cf-talk
Thanks for that info about Railo, Gert. That setting is exactly what I
wished I had in Adobe CF the other day. :)
~Brad
Original Message
Subject: AW: scoping and speed
From: Gert Franz gert.fr...@railo.ch
Date: Thu, December 10, 2009 10:40 am
To: cf-talk cf-talk
Out of curiosity Gert, why would Railo be slower finding
#variables.foo# than finding #foo# if variable cascading is on? Is it
checking for the existence of a struct named variables before checking
the actual scope or something?
Judah
On Thu, Dec 10, 2009 at 8:40 AM, Gert Franz
According to Adobe, Yes.
http://www.adobe.com/devnet/coldfusion/articles/coldfusion_performance_04.html
Thanks,
Eric Cobb
http://www.cfgears.com
Chad Gray wrote:
If you don't scope your local variables does the page run slower?
IE. #variables.foo# vs. #foo#
Professional Open Source
skype: gert.franz g...@getrailo.com
+41 76 5680 231 www.getrailo.com
-Ursprüngliche Nachricht-
Von: Judah McAuley [mailto:ju...@wiredotter.com]
Gesendet: Donnerstag, 10. Dezember 2009 20:16
An: cf-talk
Betreff: Re: scoping and speed
Out of curiosity
Source
skype: gert.franz g...@getrailo.com
+41 76 5680 231 www.getrailo.com
-Ursprüngliche Nachricht-
Von: Judah McAuley [mailto:ju...@wiredotter.com]
Gesendet: Donnerstag, 10. Dezember 2009 20:16
An: cf-talk
Betreff: Re: scoping and speed
Out of curiosity Gert, why would
9 matches
Mail list logo