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.

.......................
Ben Nadel 
www.bennadel.com

-----Original Message-----
From: Michael Dinowitz [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 03, 2006 9:37 PM
To: CF-Talk
Subject: Cost of global CFC variables

I'm looking at some debugging on the mailing list code and I'm noticing a
few interesting things. It seems that one of the custom tags I'm using
(CFX_ODSMime) is creating a LOT of variables. I'm using it within a function
and have var-ed a few of them that I'm using but there are just so many of
them. Here's the question. What is the cost of having a function write
global variables a number of times, even if the variables are never used?
Are there locking issues (I assume so)? Is it better to VAR all the
variables even if you will never use 20+ of them?
What are your thoughts and tests/results? I'll be doing a few myself to find
out the answer but the feedback from others is always useful.

Michael Dinowitz
President: House of Fusion
    http://www.houseoffusion.com
Publisher: Fusion Authority
    http://www.fusionauthority.com
Adobe Community Expert



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:248792
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