Doug Hughes said the following on 9/21/2006 8:52 PM: > All I care about is Reactor going faster. > If you looking for every ounce of speed, I'd highly recommend changing the cfswitch statements that evaluate strings in the cfcase (i.e. most notably ObjectDao.cfc's) to cfif-cfelseif-cfelse blocks. Check out the post from the guys at WebApper for more info about what is going on behind the scenes: CFSwitch Hunt - http://webapper.net/index.cfm?fuseaction=Fuseblog.ShowComments&ArticleID=20060727042244
I do did a load test on Mach-II's string cfswitch block that loads the commands for event-handlers and one using cfif-etc. blocks. On my test application I showed about 6-8% improvement in load times just by moving away from cfswitch when it evaluates strings as the cases (numerics are not affected). This is one of the improvements that made it into 1.1.1 which is in beta right now. Also, when using cfif-cfelseif-cfelse blocks be sure to put the most used data types first since "if" blocks short circuit once a match is found (yeah, I know simple, but effective thinking here). HTH, .Peter -- Peter J. Farrell - Maestro Publishing http://blog.maestropublishing.com -- Co-Host of the ColdFusion Weekly Podcast http://www.coldfusionweekly.com -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Reactor for ColdFusion Mailing List [email protected] Archives at: http://www.mail-archive.com/reactor%40doughughes.net/ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
