> I don't know if this is specifically why, but my notes from a
> MAX session mention that using cfinvoke slows things down
> because it needs to create and manage a new object for each
> call, and it was recommended to reuse existing objects where
> possible.

You can specify an existing object for <cfinvoke> to use:

This will create a new instance:

<cfinvoke component="myObject">...</cfinvoke>

This will use the already created instance:

<cfset myInstance = createobject("component", "myObject")>
<cfinvoke component="#myInstance#">...</cfinvoke>

HTH,

Tim.

-------------------------------------------------------
RAWNET LTD - Internet, New Media and ebusiness Gurus.
Visit our new website at http://www.rawnet.com for
more information about our company, or call us free
anytime on 0800 294 24 24.
-------------------------------------------------------
Tim Blair
Web Application Engineer, Rawnet Limited
Direct Phone : +44 (0) 1344 393 441
Switchboard : +44 (0) 1344 393 040
-------------------------------------------------------
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
-------------------------------------------------------


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to