Skip to main content
Participant
March 25, 2008
Question

performance cfif vs cfswitch

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 is closed to new replies. Start a new post to keep the conversation going.

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."

Translate