Skip to main content
Participant
March 25, 2008
Question

performance cfif vs cfswitch

  • March 25, 2008
  • 1 reply
  • 1125 views
With cfswitch code is more readable so no dought it should be used.
But I am wondering if using cfswitch improves/affects performance of website or no?

thanks
This topic has been closed for replies.

1 reply

Participating Frequently
March 25, 2008
Here is an interesting post.

http://webapper.net/index.cfm?fuseaction=Fuseblog.ShowComments&ArticleID=20060727042244

The summary: "Moral of the story--only use numeric expressions for cfswitch! Otherwise, use equivalent cfif-cfelseif-cfelse blocks. And this is especially true if your code will be running under heavy load."