The instantiation of a CFC does in fact add execution time, so it will be
having an impact on his reults.
If instantiating a CFC took no time at all, then there would be no reason to
cache them in a persistent scope.

There may of course be other factors involved too.

Russ

-----Original Message-----
From: Jochem van Dieten [mailto:[EMAIL PROTECTED] 
Sent: 28 December 2006 14:56
To: CF-Talk
Subject: Re: CFC vs Customtag performance.

Snake wrote:
> You are getting  your TickCount value prior to instantiating the CFC 
> and also including the init method in the caluclation.
> 
> <cfset reset()>
> 
> <cfset stringAppendCFC = 
> createObject("component","string_append").init()>
> 
> If you want to get a representation of time to call an already 
> instantiated CFC, then you should move your <cfset reset()> after the
createobject.

That is not his problem. I bet I know where his problem is but since he is
disinclined to share his code and configuration to debug it I am disinclined
to share the solution. 

If you post incomplete questions, you get incomplete answers.

Jochem



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265202
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to