> 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.   :)

Sure, I can see that. Although, you're not really burning 1/3rd of that time
unless that's the only page everyone's running, you're just dragging down
the average. So, your boss is taking the long view that the specific
performance degradation isn't going to make enough of a difference to
outweigh the improvement in readability that CFSWITCH is providing in this
case. When you upgrade to CF8, this long view is arguably justified, isn't
it?

> I was waiting for that.  :)

Well, given what little I knew about your application, it was the obvious
answer. I agree that it may not be the appropriate choice for your
application, though.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293822
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to