Mike,

The above code you posted to store the CFC instance in the Server
scope has an error.

 
CFC in server scope
<cfif NOT structKeyExists(server,'debugFcns')>
   <cflock timeout="10" throwontimeout="No" name="debug" type="EXCLUSIVE">
   <cfif NOT structKeyExists(server,'debugFcns')>
      <cfset server.debug=createObject("component","includes.debug")>
   </cfif>
   </cflock>
</cfif>

The line:

      <cfset server.debug=createObject("component","includes.debug")>

should be changed to:

      <cfset server.debugFcns=createObject("component","includes.debug")>


You were checking for the existence of 'server.debugFcns' yet
assigning to 'server.debug'.  If this is the code you are testing (and
not just a typo) you have the overhead of instantiating the CFC every
time.  This will have an impact on your timings.


Regards,
Gary Menzel
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to