On Thursday, July 25, 2002, at 01:54 , Alex Hubner wrote: > I've heard that CFMX outperforms CF5 in terms of scalability (not > necessary performance), but... It's really hard to know if the rules of > CF5 "good coding" and settings (such as the ones you find in TechNotes, > Articles and books (Optimizing ColdFusion 5 and so on)) are now also > valid to CFMX... Maybe a "CF5" code and server tunning is not suitable > for CFMX in terms of performance, maybe yes... Not sure, who is?
There are certainly sufficient changes in the performance characteristics of some language features that what was "best practice" in terms of performance for CF5 will not necessarily be "best practice" for CFMX. Perhaps the mot fundamental example is custom tags - in CFMX, these are pretty much as fast as using a UDF (or the new CFC feature). Code that went out of its way to simulate custom tag behavior in a 'faster' way will probably be slower on CFMX (Matt Liotta can probably comment on this). The Coding Guidelines published on my site (see the "ColdFusion Resources" page at http://www.corfield.org/coldfusion/) contain some performance tips that were originally true of CF5 with notes saying which have been validated on CFMX and which have not (lack of time on my part). That is not meant to be a definitive list, merely a few examples. The business of code optimization has always been fraught with version-specific issues but the bottom line is that simple code is usually faster. That is especially true in a compiled language environment where complex code can often prevent the compiler from doing a good job of optimization. Sean A Corfield -- http://www.corfield.org/blog/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ______________________________________________________________________ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm 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

