Sorry, jumping in late here...
I did some performance testing recently too see if it was faster to CFINCLUDE a UDF library containing 50 UDFs, or instantiate a CFC with the same 50 CFCs as methods. The results were that the CFINCLUDE was substantially faster on initial page load and all subsequent page loads. As a side note, I tested CFML tag based UDFs vs. CFSCRIPT based UDFs too, and the CFSCRIPT UDFs executed slightly faster than their tag based cousins. -Rob >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Date: Mon, 30 Sep 2002 10:26:29 +0200 From: "Benoit Hediard" <[EMAIL PROTECTED]> Subject: UDF Vs CFC (was RE: So many problems with CFC scopes...) Message-ID: <[EMAIL PROTECTED]> I agree with you Raymond. But it is true that is more "personal preference/coding style terms" than "performance/architecture terms". This are my personal rules : CUSTOM TAGS (ColdFusion Taglibs) - custom tags encapsulates presentation logic they always output content (usually HTML), - custom tags usually do not call the model or controller layer, - custom tags are only used by the presentation layer (page or pagelet scripts). >> They are used for presentation logic encapsulation. USER DEFINED FUNCTIONS (UDF) - user defined functions encapsulate generic logic and rarely output content (except for string formatting purposes), - user defined functions do not call the model or controller layer, - user defined functions are used in any layer (view, controller or model). >> They are used generic logic/function encapsulation. COLDFUSION COMPONENTS (CFC) - components encapsulate business/data access application logic and never output content, - components are called by the view layer only to read data, - components are called by the controller layer to create/update/delete data. >> They are used for business logic encapsulation. .. I've put some examples here http://www.benorama.com/coldfusion/patterns/part3.htm Benoit Hediard www.benorama.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

