On Wed, Sep 1, 2010 at 12:31 PM, Dave Watts <dwa...@figleaf.com> wrote: > >> <cfset errors["#varName#"]["string"] = errors["#varName#"]["string"] & "bit >> to add here."/> > > There will not be a significant speed increase, so don't worry about > changing existing code unless you have time on your hands and it > really offends you.
It offends me, so I say he should do it. =) >From a performance perspective, it might matter if there were a thousand of them on a page that was accessed a thousand times per second.... I would think that using ["#varname#"] would actually create a new string object in the java code where as [varname] would not.. but who knows. Still, the code IS offensive =) It would only be worse if it were like this... <CFSET ERRORS[VARNAME]['STRING'] = EVALUATE("ERRORS[""#VARNAME#""][""STRING""]") & "bit to add here."> Heh. (Yes, that does work) Rick ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336758 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm