>From past posts, it was noted that since it looked directly at that scope for the value it was faster - isDefined, while although is looking at a particular scoped variable, it still relief on ColdFusion iterating through the list of scopes and variable arrays to check.
"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: Jonathon Stierman To: CF-Talk Sent: Sat Jun 02 20:14:44 2007 Subject: RE: cfinvoke or CreateObject Anyone know for sure? I've never looked into the performance difference myself, but would be interested to know... Jonathon -----Original Message----- From: Robertson-Ravo, Neil (RX) [mailto:[EMAIL PROTECTED] Sent: Saturday, June 02, 2007 2:04 PM To: CF-Talk Subject: Re: cfinvoke or CreateObject Wouldn't StructKeyExists(form,"userID") be faster --Instead of isDefined? .... "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: Jonathon Stierman To: CF-Talk Sent: Sat Jun 02 20:03:02 2007 Subject: RE: cfinvoke or CreateObject And dynamic arguments. <cfinvoke method="getAllUsers"> <cfif isDefined("form.userID")> <cfinvokeargument name="userID" value="#form.userID#" /> </cfif> </cfinvoke> You'd have to branch out every single combination of possible parameters using just a CreateObject call. <cfif isDefined("form.userID")> <cfset recordSet = myUserCFC.getAllUsers(userID=form.userID) /> <cfelse> <cfset recordSet = myUserCFC.getAllUsers() /> </cfif> Jonathon -----Original Message----- From: Doug Bezona [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 3:07 PM To: CF-Talk Subject: Re: cfinvoke or CreateObject > > I personally can't think of any reason to use cfinvoke to call a > method of an already instantiated object. Dynamic method names ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279916 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

