There was a huge thread a few weeks ago on this topic...there is a 
persistent myth that Evaluate is slower than the structure methods for 
evaluating dynamic variables...however I and some others did some testing 
and found the difference is negligible.  Possibly older versions of CF had 
performance issues with Evaluate which is why it has a bad rep.

-- Josh


----- Original Message ----- 
From: "Charlie Griefer" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Wednesday, August 30, 2006 9:12 AM
Subject: Re: Must I Use Evaluate() Here?


> not saying we didn't...but i don't recall that particular agreement
> (but then again, my mind's old and feeble)
>
> On 8/30/06, Russ <[EMAIL PROTECTED]> wrote:
>> Did we not agree that there is no speed benefit in not using evaluate?
>>
>> > -----Original Message-----
>> > From: Mingo Hagen [mailto:[EMAIL PROTECTED]
>> > Sent: Wednesday, August 30, 2006 12:01 PM
>> > To: CF-Talk
>> > Subject: Re: Must I Use Evaluate() Here?
>> >
>> > stcFilters['filter_#i#'] works
>> >
>> >
>> >
>> > Sung Woo wrote:
>> > > I have a structure called stcFilters.  In this structure, I have the
>> > following values:
>> > >
>> > > stcFilters.filter_1 = 100
>> > > stcFilters.filter_2 = 200
>> > >
>> > > I want to show the value of these filters through a cfloop:
>> > >
>> > > <cfloop index="i" from="1" to="2">
>> > >  <cfset temp = Evaluate("stcFilters.filter_#i#")>
>> > >  <cfoutput>#temp#</cfoutput>
>> > > </cfloop>
>> > >
>> > > I can't seem to get around using the evil Evaluate -- can anyone 
>> > > help?
>> > Much thanks.
>> > >
>> > >
>> >
>> >
>>
>>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251493
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to