|
That’s actually the opposite of what
I’ve found (in general) in my testing, Adam. Which makes sense, because IIf()
forces code to be “Evaluate()”ed. Either way, the timing differences are *negligible* and not worth worrying about.
We’re talking about a couple of milliseconds. I’d also wager
it’s highly dependent on machine configuration, as well as the statement
being evaluated. Roland From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Adam Cameron > is this
still so under cfmx? the faster part that is. Nope, not since CF5. My testing
suggests iif() is faster than <cfif><cfelse></cfif>, in
equivalant tests. A Simple <cfif></cfif> was faster than
iif(), though. That's not the only conisderation, though,
obviously. And, indeed, the differences were marginal (although clearly
always favoured iif()). I don't *stop* myself from using iif()
when needs must, but I'm more inclined to stick to a plain old if() most of the
time. Or <cfif> if I really have to ;-) -- Adam This email contains confidential information. If you are not the intended recipient of this email, please notify Straker Interactive and delete the email. You are not entitled to use it in any way. ----------------------------------------------------------You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). CFCDev is supported by New Atlanta, makers of BlueDragon http://www.newatlanta.com/products/bluedragon/index.cfm An archive of the CFCDev list is available at www.mail-archive.com/[email protected] ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). CFCDev is supported by New Atlanta, makers of BlueDragon http://www.newatlanta.com/products/bluedragon/index.cfm An archive of the CFCDev list is available at www.mail-archive.com/[email protected] |
- RE: [CFCDev] CFC wish-list Roland Collins
- RE: [CFCDev] CFC wish-list Adam Cameron
- Re: [CFCDev] CFC wish-list Sean Corfield
- Re: [CFCDev] CFC wish-list Joe Rinehart
- Re: [CFCDev] CFC wish-list Sean Corfield
- Re: [CFCDev] CFC wish-list Bill Rawlinson
- Re: [CFCDev] CFC wish-list Sean Corfield
- RE: [CFCDev] CFC wish-list JDFarrar
- Re: [CFCDev] CFC wish-list Patrick McElhaney
- Re: [CFCDev] CFC wish-list Jeff Anderson
- Re: [CFCDev] CFC wish-list Bill Rawlinson
