http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/wiki/FAQWhySlow
See reason #1 and #3 especially. Seems like you've already have reason #2 covered. .pjf Matthew said the following on 3/13/2009 12:40 AM: > Hi all > > Hopefully I won't get my head bitten off for asking this (I just read > a comment from Matt Woodward on this post > http://groups.google.com/group/mach-ii-for-coldfusion/browse_thread/thread/e48884ea6eb70312/3163f8d8a449ec51?q=speed&lnk=ol&) > however I shall ask anyway. > > I'm retro fitting sections in my app to a MachII / Tranfer / > ColdSpring bundle. First I modified the queries to use Transfer and > had no speed impact. Then I added MachII and ColdSpring in one hit and > found that some pages are taking 6+ seconds (way too long because they > used to take only several 100ms). So I took a backwards step and > isolated Mach-II and did a test. I grabbed a simply procedural page > made up of 2 simply queries (20 records max), and a simple form with a > drop down populated by the queries - 38 line of code (nice and easy > and fast). I chucked this into a Mach-II view (without moving the > queries to a listener / gateway etc - this was just a test after all) > and then compared the differences. I'm getting a difference of 110ms > (procedural) versus 453ms (Mach-II) - this seems high. I must be doing > something wrong. I've set MACHII_CONFIG_MODE = "-1", what else could > be wrong? > > The CF Debug shows the following lines are the slowest: > > 391ms CFC[ C:\Program Files\Apache Group\Apache2\htdocs\project > \Application.cfc | onRequestStart(/index.cfm) ] > 282ms CFC[ C:\Program Files\Apache Group\Apache2\htdocs\MachII > \framework\RequestHandler.cfc | handleRequest() ] > 109ms CFC[ C:\Program Files\Apache Group\Apache2\htdocs\MachII > \framework\EventHandler.cfc | handleEvent(CFC: MachII.framework.Event, > CFC: MachII.framework.EventContext) ] > 94ms CFC[ C:\Program Files\Apache Group\Apache2\htdocs\MachII\framework > \commands\ViewPageCommand.cfc | execute(CFC: MachII.framework.Event, > CFC: MachII.framework.EventContext) ] > > Here's a snippet from Application.cfc: > <cffunction name="onRequestStart" returnType="boolean"> > <cfset handleRequest()> > <cfreturn true /> > </cffunction> > <cffunction name="onRequest"> > <cfargument name="targetPage" type="string" required="true" /> > <cfinclude template="#arguments.targetPage#" /> > </cffunction> > > Cheers > Matthew > > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.0.237 / Virus Database: 270.11.11/1997 - Release Date: 03/12/09 > 10:38:00 > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to Mach-II for CFML list. To post to this group, send email to mach-ii-for-coldfusion@googlegroups.com To unsubscribe from this group, send email to mach-ii-for-coldfusion-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/mach-ii-for-coldfusion?hl=en SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/ Wiki / Documentation / Tickets: http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/ -~----------~----~----~----~------~----~------~--~---