Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFSwitch and how fast it is 1

Status
Not open for further replies.

DrumAt5280

Technical User
Joined
Sep 8, 2003
Messages
194
Location
US
I am using the CFSwitch statement instead of the many CFIF statements because i understand it is much faster.

My questions is, does it matter if i have 5 CFCase statements or 100 CFCase statements within the CF Switch in terms of speed - would they both be equally as fast or would the one that has 100 CFCase run slower.
 
Is the server going to take longer to process 100 statements than it would to process 5 statements? Yep.

But to the human eye it would be hard to tell, and you probably wouldn't even notice. (unless you've got some HEAVY processing going on in those statements)



Hope This Helps!

ECAR
ECAR Technologies, LLC

"My work is a game, a very serious game." - M.C. Escher
 
now, if you ever wanted to test 100 cfcase vs 100 cfif's you can do the getTickCount() trick to test.

see thread232-787216 for more info



Beware of programmers who carry screwdrivers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top