Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Calling CFC object

Guest
Sep 30, 2009 Sep 30, 2009

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.

463
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Valorous Hero , Sep 30, 2009 Sep 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.

Translate
Valorous Hero ,
Sep 30, 2009 Sep 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 30, 2009 Sep 30, 2009
LATEST

Hi Ian,

Thanks for the answer.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources