Skip to main content
September 30, 2009
Answered

Calling CFC object

  • September 30, 2009
  • 1 reply
  • 494 views

Hi,

Is there any difference in terms of speed between these two methods of calling a CFC object function

<cfset x=obj.myFunction()>

and

<cfinvoke component="#obj#" method="myFunction" returnVariable="x">

obj having been instantiated already.  I like using cfinvoke because I can use cfinvokeargument, but I would like to make sure that it runs just as fast.

Thanks.

    This topic has been closed for replies.
    Correct answer ilssac

    I doubt it.

    If there is a slight difference I especially doubt that it would be enough of a difference that I would ever worry about it in a normal web application where there are are much worse preforance killers then a slight difference in calling an object method such as this.

    1 reply

    ilssac
    ilssacCorrect answer
    Inspiring
    September 30, 2009

    I doubt it.

    If there is a slight difference I especially doubt that it would be enough of a difference that I would ever worry about it in a normal web application where there are are much worse preforance killers then a slight difference in calling an object method such as this.

    September 30, 2009

    Hi Ian,

    Thanks for the answer.