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.)

>Would it help at all to create a ColdFusion custom tag and then call 
>the CFX tag within it? Since CF custom tags have their own scope not 
>shared with the general application, you shouldn't have to worry about 
>all the VAR'ing of function variables? Anything created by the CFX tag 
>(so long as its not set into REQUEST or APPLIACATION or something) 
>should be destroyed at the end of the custom tag automatically.
>
>I think this would eliminate all locking issues as well since it's a 
>per-page load , non-shared scope.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:248809
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to