Hi, This a subfuse to a coldfusion fuse curiosity of mine.(oh stop me now).

Now I know that cfoutput goes faster than cfloop and I've read that I 
should use that case compare function(or whatever its called) to see if two 
strings are equal and that saying cfif len(string) is faster than saying 
cfif string eq ''.

Theres lots more like this. I could go on.

So the question arises, does anyone know of any published actual speed 
comparisons that are based on numbers instead of rules of thumb??  I'm 
really quite curious about the ones I know about and the ones I don't know 
about.

DRE

At 03:04 PM 2/14/2001 -0500, you wrote:
>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