> -----Original Message-----
> From: Brian Kotek [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 07, 2007 10:36 AM
> To: CF-Talk
> Subject: Re: CFC Typeof()
> 
> The reason I thought it would be slower is that I recall someone trying
> to
> write a way of allowing interfaces in CFCs that relied on calls to
> getMetaData() to look up method signatures and such, and I remember
> that it
> was very slow.

I won't enter the debate of whether this is a good idea or not - but I've
done this and it can be quite performant.

Like Barney says - caching is the key.

This still (obviously) incurs a small performance hit (and a larger hit on
first access) but overall the difference is in the margins.

Here's my implementation.  Still works fine but it was built with CF 6:

http://www.depressedpress.com/Content/Development/ColdFusion/DPLibraries/Ind
ex.cfm

Look at the root package for the stuff that handles meta-data caching,
generic getter-setter and forced-typing stuff.  If I were to rebuild I'd
probably do it differently now... but I've been very pleased with this stuff
for a long while now and have done some pretty high-use sites with it.

Jim Davis


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280380
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to