Josh, 

I am right with you on that point! I am a huge fan of learning by doing!
Keep it up.

.......................
Ben Nadel 
www.bennadel.com

-----Original Message-----
From: Josh Nathanson [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 21, 2006 6:10 PM
To: CF-Talk
Subject: Re: iif: am I understanding correctly?

This part of the app is not going to take heavy traffic, so the performance
hit would be negligible.  However going forward I will always take into
consideration the possible performance implications of iif/evaluate/DE.

Ben -- I guess I like messing around with stuff like this (iif, evaluate
etc.) because I feel like I don't fully understand it, and if I can get it
to work as desired, maybe I can come to a better understanding of how
certain things in CF work in a more general sense.

-- Josh


----- Original Message -----
From: "Munson, Jacob" <[EMAIL PROTECTED]>
To: "CF-Talk" <cf-talk@houseoffusion.com>
Sent: Friday, July 21, 2006 2:52 PM
Subject: RE: iif: am I understanding correctly?


>> OK, I ran cftimer on both examples, iif and the if/else way,
>> and both came
>> back 0 ms.  So I think in this case, since it's only looping
>> over 10 list
>> items or whatever, I'll stick with the leaner code.  Maybe if
>> you were
>> looping over thousands of list elements or query rows or
>> something, there'd
>> be a more noticeable performance hit.
>
> Interesting.  However, if your app ever need's to scale, it /could/ end
> up being thousands of list elements, if hundreds of people are firing
> that code simultaneously.  That's why I usually try to simulate some
> traffic by putting the pieces of code I want to test in a loop that runs
> thousands of times.  It's not the best way to test (a load tester would
> be better), but it gives you a better idea.  Of course, none of this is
> relevant if you know your app will never have that much traffic.  :)
>
>
> -------------
>
> This transmission may contain information that is privileged, confidential

> and/or exempt from disclosure under applicable law. If you are not the 
> intended recipient, you are hereby notified that any disclosure, copying, 
> distribution, or use of the information contained herein (including any 
> reliance thereon) is STRICTLY PROHIBITED. If you received this 
> transmission in error, please immediately contact the sender and destroy 
> the material in its entirety, whether in electronic or hard copy format. 
> Thank you. A1.
>
>
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:247392
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to