Hey Gav,
I almost always use the direct method call style (they probably compile to
similar bytecode so i doubt there is a performance issue - though i suspect
it might take a teeny weeny bit longer to parse the cfinvoke tag syntax
each time, when class files are not being saved).
so
result = myComp.myTheod(arg1="arg1");
or
<cfset result = myComp.myTheod("arg1")>
or lots of args
stArgs = structNew();
stArgs.args1 = "arg1";
...
result = myComp.myTheod(argumentCollection=stArgs);
it is probably a matter of style/readability/preference and nothing more
Elliot
"Gavin Cooney" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Hi all,
>
> Was just wondering: is there any performance difference between the
> following code?
>
> <cfinvoke component="#application.mcqcfclib.preparetest#"
> method="allPossibleQuestions"
> returnvariable="qAllPossibleQuestions"
> courseID="#arguments.courseID#"
> listQuestionSources="#arguments.listQuestionSources#"
> maxImageSize="#arguments.maxImageSize#"/>
>
> Versus.....
>
> <cfset qAllPossibleQuestions =
> application.mcqcfclib.preparetest.allPossibleQuestions(
> courseID="#arguments.courseID#",
> listQuestionSources="#arguments.listQuestionSources#",
> maxImageSize="#arguments.maxImageSize#") />
>
> And which way do you guys usually do it?
>
> Thanks
>
> Gav
>
>
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/