On Nov 26, 2007 11:14 AM, Brad Wood <[EMAIL PROTECTED]> wrote: > > If it helps, I did run the test originally for 10,000 iterations which, > given my application, is a very realistic number to consider. While the > comparison is less dramatic the cfswitch is still a full second slower > which is significant enough to me not to use it in this specific > situation. (47 ms / 1141 ms) >
> > My CIO has requested that the average page load time in our app be 3 > seconds or less. Now I am being told to burn 1/3 of that time purely > because a switch is more readable and it would be "dumb" to use a > conditional structure known to be faster in CF7. Personally I think > that advice stinks. :) > > The issue is not whether cfif is faster than cfswitch, since it easily could be. And clearly you should use whatever meets your needs, so wanting to use the faster of the two is not a crazy thing to want. The point is that until you test the code under the actual target load, this simple iterative test is virtually meaningless. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293818 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

