Copy link to clipboard
Copied
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.
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Hi Ian,
Thanks for the answer.