And luckily getMetaData has been fixed in ColdFusion 8 so it no longer creates the object :-)
"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: Barney Boisvert To: CF-Talk Sent: Thu Jun 07 07:28:51 2007 Subject: Re: CFC Typeof() I'm inclined to disagree. getMetaData is cached, so while the first invocation may require some additional overhead, subsequent calls just return the already-existing object straight away, so they're blindingly fast. This also means that you can cache your own metadata in the metadata struct if you care to. Like, for example, the results of instanceOf calls, so repeated calls with the same type don't have to scan the tree. Exception handling is typically an expensive operation, because performance is less important that assisting in recovery and/or debugging (if it's checked or unchecked). Java has this characteristic, and since CF uses the Java exception handling mechanism (plus a wrapper), CF has the same issues/benefits. cheers, barneyb On 6/6/07, Brian Kotek <[EMAIL PROTECTED]> wrote: > Actually I'm quite sure that a try/catch block would be much faster than > calling getMetaData(), especially for CFCs with more than 1 or 2 levels of > inheritance. > -- Barney Boisvert [EMAIL PROTECTED] http://www.barneyb.com/ Got Gmail? I have 100 invites. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:280334 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

