Actually cfswitch performs much faster than cfif/elseif if there is more
than a one elseif/cfcase

1 cfcase vs 1 cfif (no cfelseif's) will perform with the same speed, so
if you only had 1 fuseaction, it wouldn't matter whether you used
cfswitch or cfif.

Although if you live the real world this isn't the case.

cfswitch performs with the basically the same speed regardless of how
many cfcase statements you have, where as cfelseif has a linear speed
increase for each new cfelseif statement.

I did this test comparison a long time ago when CF 4.0 was released.

Steve Nelson

Greg Luce wrote:
> 
> I was under the impression that <cfswitch> performed BETTER than
> <cfif><cfelse></cfif>.
> 
> > Anyone worked up documentation on the fusebox performance trade-offs? I
> know
> > that using custom tags and cfswitch are slower than cfinclue &
> > cfif/esleif/else, but the general argument was that for the most part it
> > wasn't noticeable.
> >
> > If anyone has docs or opinions, let me know.
> >
> > Also, if anyone has a tip on increasing performance (in regards to
> fusebox,
> > general CF performance Allaire has well documented), please pass that on,
> > too!
> >
> > Thanks,
> >
> > Shannon Hicks
> > Senior Developer
> > Allaire Certified ColdFusion Developer
> > Brainbench Certified ColdFusion Developer
> > [EMAIL PROTECTED]
> >
> > duoDesign, The eBusiness Accelerator
> > 1007 Church St. Suite 510
> > Evanston, IL 60201
> > 847.491.3211
> > 847.491.3100 fax
> >
> > http://www.duodesign.com/
> > http://www.chicagoangels.org/
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to