I don't know if this has been thrown out there or not, so here it is.
Some of you will remember a conversation that referred to this webapper blog (http://www.webapper.net/index.cfm?fuseaction=Fuseblog.ShowComments&Arti cleID=20060727042244) about cfswitch on string values being horrendously slow under load in earlier versions of CF. (CF 7 for sure) Well, I was messing around with it in CF7 yesterday, looping a million times with cfif's and cfswitch's (the switches were 90 times slower for string values and twice as slow for numbers). A SeeFusion stack trace did indeed show constant attempts to convert the strings to doubles, and then the resultant exceptions that were thrown and caught internally. I ran the same test code on our new CF8 server and was very happy to see the switch was only about twice as slow for string values (and the same for number values). And for 1 million loops it was literally the difference between 200 and 400 milliseconds. So those of you with your sites comfortably on CF8 with _heavy_ loads on your cfswitch's, you can rest easy. And for the rest of you, unless you are doing thousands of cfswitches you are probably safe too. ~Brad ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293653 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

