Dave, during the first execution of a template on CFMX, the CFML code is compiled into a Java .class file. This why the first run takes a bit of time. Subsequent runs of the page run the compiled .class file, so they are much faster. There's no way to alter this behavior, actually it is one of MX's biggest advantages. Hope that helps.
Brian Dave Phipps wrote: > Hi, > > I have just upgraded my dev machine to CFMX and I have noticed that my > fusebox apps are running really slowly on it. Below is an example of > the > execution times for one particular section. Once the section has been > called once then it all seems to run really quickly but why is it so > slow > first time around and how can I speed things up? > > Total Time Avg Time Count Template > 5337 ms 5337 ms 1 C:\Inetpub\wwwroot\projects\homesite\index.cfm > 5327 ms 5327 ms 1 > C:\Inetpub\wwwroot\projects\homesite\fbx_fusebox301_CF50_nix.cfm > 3154 ms 3154 ms 1 > C:\Inetpub\wwwroot\projects\homesite\about\fbx_Switch.cfm > 2143 ms 2143 ms 1 C:\Inetpub\wwwroot\projects\homesite\typicallayout.cfm > 40 ms 40 ms 1 > C:\Inetpub\wwwroot\projects\homesite\about\qry_about_top_headlines.cfm > 10 ms 10 ms 1 C:\CFusionMX\CustomTags\secure.cfm > 10 ms 10 ms 1 C:\Inetpub\wwwroot\projects\homesite\dsp_header.cfm > 10 ms 10 ms 1 > C:\Inetpub\wwwroot\projects\homesite\fbx_Settings.cfm > 0 ms 0 ms 1 > C:\Inetpub\wwwroot\projects\homesite\Application.cfm > 0 ms 0 ms > 1 > C:\Inetpub\wwwroot\projects\homesite\about\dsp_unauth_about.cfm > 0 ms 0 ms > 1 C:\Inetpub\wwwroot\projects\homesite\about\fbx_Settings.cfm > 0 ms 0 ms 1 > C:\Inetpub\wwwroot\projects\homesite\dsp_footer.cfm > 0 ms 0 ms 1 > C:\Inetpub\wwwroot\projects\homesite\fbx_Circuits.cfm > 0 ms 0 ms 1 > C:\Inetpub\wwwroot\projects\homesite\fbx_Layouts.cfm > 0 ms STARTUP, PARSING, COMPILING, LOADING, & SHUTDOWN > 5337 ms TOTAL EXECUTION TIME > > Also, are there any plans to make the core file into a CFC or have I > misunderstood what CFC's are for? > If I understand it correctly making the core file into a CFC will enable > > you to have just one copy of it on the server and call it in every > fusebox > app. instead of having it located in every root application. > > If I am way off the mark with this idea then please let me know as I may > > have missed something about CFC's. > > Cheers > > Dave Phipps > > > > ============================================ > Phipps CF Development > Oxford, Oxfordshire. > Telephone: +44(0)7718 896696 > http://www.phipps-cf.co.uk > ============================================ > > > --- ==^================================================================ This email was sent to: [email protected] EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9 Or send an email to: [EMAIL PROTECTED] T O P I C A -- Register now to manage your mail! http://www.topica.com/partner/tag02/register ==^================================================================
