•  
  •  

CFSWITCH Performance Issue in CFMX 7

You will find this on a couple blogs, but since I”ve given presentations on ColdFusion performance since the Allaire days, I thought I should share.

My friends at webapper discovered an issue with CFSWITCH under load where the expression was a string.

In my presentations, I often encouraged the use of CFSWITCH over using if/elseif logic. This practice was a result of load testing applications with SilkPerformer. Under load, an application will show its true colors.

I still do recommend this practice, but now with a caveat. It has been found that string expressions in the CFSWITCH tag do not perform as well as numerics. Therefore, you should try to make these expressions numerics or evaluate if changing to CFIF/CFELSEIF would help your application.

Thanks Daryl for an excellent find!

About Rob Rusher

In his role as Principal Consultant for On3, Rob leads an software development practice to help his clients build rich Internet applications for the desktop, browser, and mobile devices, and to rapidly increase their knowledge and skills to better support their organization's goals. Rob is an Adobe Certified Expert, Community Professional, and Certified Instructor. He has taught and mentored the technical teams at HP, Overstock, Paychex, SAS, the FedEx, and other Government and Fortune 100 organizations. Rob has co-authored four best-selling books on building secure, cutting-edge and rapidly developed applications using Adobe AIR, ColdFusion and Flex. He is very active in organizing and speaking at RIA, Adobe LiveCycle, mobile conferences, and user groups. In addition to growing his software consulting practice, On3, Rob has been building expertise in rich client application development on a wider variety of devices and platforms that extend the applications to change the way we all create and live.