Here's a link to the thread from last February about the relative
speed of the two constructs, including results of the test that I did.

http://www.houseoffusion.com/cf_lists/messages.cfm/Threadid=30474&forumid=4

The results were pretty conclusive, even moreso than I remembered. 
The tests weren't comprehensive, and they weren't designed to be,
rather I was looking for some quick and dirty comparisons, which I
got.  I'm sure you can find scenarios where CFSWITCH will be faster,
but that's not the point.

Like I said before, I wouldn't worry about it at all.  The relative
speeds are actually quite minute, so take readability of the code as
the top priority.  If you later find (via granular load testing) that
the specific construct is a bottleneck, then try using the other
method, but until then, there are a lot better places to try and
optimize (query structure, indexing your DB properly, data caching,
etc.).

cheers,
barneyb

On Fri, 28 Jan 2005 20:46:23 -0500, dave <[EMAIL PROTECTED]> wrote:
> the reason i said that was y'all reemed me about 6 months ago on that and 
> everyone went off about how much better cfcase & cfswitch were, so now its 
> not?
> 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 6 invites.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192167
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to