Right, That sounds like good practice. I also tried instantiating a cfc into the application scope, which worked fine, but did not result in any visible increase to performance.
At 09:42 AM 06/09/02 -0700, you wrote: >If you call a CFC more then once on the same request using the cfinvoke >tag you could be instantiating it over and over, which is needless >overhead. I suggest you make it a habit to always create an instance of >the CFC using the cfobject tag before calling any of its methods. > >Matt Liotta >President & CEO >Montara Software, Inc. >http://www.montarasoftware.com/ >888-408-0900 x901 > > > > -----Original Message----- > > From: Brook Davies [mailto:[EMAIL PROTECTED]] > > Sent: Friday, September 06, 2002 9:47 AM > > To: CF-Talk > > Subject: Quick CFC questions > > > > I really like CFC's in CFMX and am almost done rewriting my site to >use > > CFC's to encapsulate the core functionality. I'm only using the basic > > features of CFC's, for lack of experience or understanding of some of >the > > more advanced features (waiting for Ben's Book!). > > > > So, I'm just curious if what I'm doing is acceptable practice and if >there > > is some room for improvement (there always is). > > > > I essentially have a several action pages which use the <cfinvoke> >syntax > > to call approx. 6 cfc's in a sequence while performing a small amount >of > > processing inbetween. Each call used the <cfinvoke> tag. Within some >of > > the CFC's , I have calls to other CFC's. Is this "okay"? > > > > I have noticed that calling <cfinvoke> seems to be a bit slow. I >wrapped > > the contents of a CFC in a timer script and got 0-10 milliseconds > > consistently. Wrapping the timer script around the same CFC, but > > including the <cfinvoke> statement returned > > between 30-70 milliseconds. Is that normal? > > > > Thanks for the input, I'm really looking forward to Forta's book and >I'm > > sure some great cf component details. > > > > Brook > > > > > > > ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

