Just wondering if anyone knows whether there is any performance advantage in invoking a function from a CFC or calling upon a custom tag? I presently am using both but would like start to standardise things and I am ready to go with CFC’s but would like to have any supportive evidence that anyone has.
UDFs, CFCs and Custom Tags are all compiled to java. The execution time of the code is all but identical. The performance issue lies in the instantiation of these things.
Creating a CFC is a relatively costly event, but if you are calling multiple methods on the one CFC it may beat out the creation of multiple custom tag instances in terms of performance. Depending on your code you may be able to cache the CFC in a persistent scope like application or server -- you can't do this for custom tags.
I'd be inclined to suggest that custom tags are still very useful and work well with CFC's. But by and large custom tags are being relegated to the presentation layer of applications and CFC's are now doing most of the heavy lifting. Probably should be less a question of performance and more a case of what's the best approach for the application in terms of maintainability.
-- geoff http://www.daemon.com.au/
--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
