> I will second that, the one thing (and yes I will include me 
> on this one) is that even though the Garbage collection does 
> a good job. Under heavy load it is not smart enough to know 
> what we want when we want it. And it is a trap that most do 
> not think about.
> 
> So in the old days of allocating memory in C/C++, it is also 
> a good idea to destroy a variable as soon as it is no longer 
> needed. I am not saying all, but at least in cases like this.

I'm not exactly sure what you're recommending here, but deleting variables
in CF doesn't cause the value to be removed from memory. It simply removes
the reference to the value from the stack, making the value available for
garbage collection. I'm not sure whether deleting a variable within a page
will allow it to be garbage collected before the page has finished, or not,
but in any event it's relatively unlikely that garbage collection will run
frequently enough to make a difference.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295039
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