> Any difference in performance between using a > > <cfswitch> > <cfcase> > </cfcase> > </cfswitch> statement > > and using > > <cfif> > <cfelseif> > </cfif> statement? > > Does anyone know which is faster and why?
If you have a lot of choices, and the possible values for those choices are known in advance, then a CFSWITCH will probably be a bit faster. If not, then CFIF may be just as fast. It's worth noting, though, that in the big picture, the performance difference between the two is likely to be negligible, unless you really have a lot of choices. Use whichever one suits you best in a specific situation, and worry about other performance issues, like your SQL and your general application architecture. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ______________________________________________________________________ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. 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

