Theoretically, there shouldn't be a difference between a single cfinvoke vs
a single cfobject and function call. The real speed bonus comes when you
reuse methods from your component because cfinvoke will reload the component
every time and cfobject only needs to instantiate once. Then it gets better
when you store your component in the application or server scopes, so you
instantiate it once and reuse it until you reboot your server.

That's the theory at least.

-nathan strutz

  -----Original Message-----
  From: Kevin Marino [mailto:[EMAIL PROTECTED]
  Sent: Friday, February 20, 2004 12:36 PM
  To: CF-Talk
  Subject: CFC invocation performance

  Hi,

  Was wondering if there is a noticeable performance difference between the
  two following methods;

  1.  Create an Object referencing CFC then calling functions (e.g.
  myObject.myfunction() ) on the page.
  2.  using cfinvoke when needed to call function.

  Hope I phrased that right.

  Thanks

  -Kevin Marino
  ----------------------
  Webmaster - HealthObjects
  [EMAIL PROTECTED]
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to