I've always hated using that syntax as it totally breaks the idea of 
encapsulation and just feels totally wrong. 
Anyway, using a custom tag means creating a 'new' instance of something that 
has it's own environment. More overhead than I want, even if it's small. But 
that doesn't address the original issue:

I'm wondering if a heavily used, cached CFC that has a lot of variables being 
written to the global variables scope has any overhead associated with the 
multiple variables being written to the global variables scope or would it be 
more efficient to VAR every variable in a function, even if it's not being used?

>I have never passed back scopes from a custom tag... But couldn't you just
>be like:
>
><cfset CALLER.TagData = VARIABLES />
>
>... Or maybe THISTAG ??? 
>
>Then all local variables of the custom tag would be passed back into one
>data variable... No hassle. 
>
>......................
>Ben Nadel 
>www.bennadel.com
>
>
>-----Original Message-----
>From: Michael Dinowitz [mailto:[EMAIL PROTECTED] 
>Sent: Friday, August 04, 2006 11:37 AM
>To: CF-Talk
>Subject: Re: Cost of global CFC variables
>
>I'd prefer not to have to worry about passing all of the variables that I do
>use from the CFX tag back to the function from the cfmodule.
>It's more of a generic question to see if someone has investigated any
>overhead. I've already incorporated what I learned about types, required and
>returntypes and the speed increase for that is nice. I want to avoid other
>bottlenecks. (the paper on the types,returntypes and the like has been in
>edit for the last 3 months, but I mentioned it at CFUnited as did Sean from
>his own research. I'll have it out soon.)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:248812
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to