I'm going to guess that switches, and ifs aren't going to be a bottleneck in
any of your code. If you're looking to improve performance you'd be best
starting at optimizing any of your queries first, then make sure all of your
variables are scoped inside CFCs, and the rest of your code, then make sure
that your CFCs aren't referencing external scopes.

If you've got all that done, and you're still having performance issues look
at rewriting your if and switch statements.

-----Original Message-----
From: Mike Francisco [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 30, 2008 12:24 PM
To: CF-Talk
Subject: How is cfswitch better that cfif?

Alot docs I've read says that cfswitch performs better than cfif.  Does
anyone know in what way?  How would it be better if both tags are processed
by the CF server engine anyway.  I wanted to justify if it is worth the
effort of rewriting some of my code to improve the performance of my app
that uses cfif quite extensively. A better understanding would surely help
me decide. Thanks in advance.





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:306396
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to