Yeah, we have some code which is using cfinvoke and we changed it call a singleton object instead of instantiating each time via cfinvoke, I would 100% agree that calling via application.object.method() is cleaner but was wondering if there was any speed difference as both are "correct" regardless of syntax.
Doesn't seem to be. "This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -----Original Message----- From: Rick Root To: CF-Talk Sent: Thu May 31 18:48:58 2007 Subject: Re: cfinvoke or CreateObject On 5/31/07, Robertson-Ravo, Neil (RX) <[EMAIL PROTECTED]> wrote: > What about cfinvoking a method in an already persisted object, I.e. Using > component="#application.foo#" I personally can't think of any reason to use cfinvoke to call a method of an already instantiated object. You couldj ust go <cfset results = application.foo.method()> or <cfscript> results = application.foo.method(); </cfscript> and either would be prettier than cfinvoke. IMO ;) Rick ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279752 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

