I just consider Evaluate to be sloppy coding. It is (almost) never needed as
it basically tells coldfusion to do something it already is doing: "look at
this and see if its a variable".  It is by no means the worst thing in the
world but to the extent that you can cut it out of your code, I think you do
yourself a favor by coding more cleanly (and increasing execution efficiency
even if only a little).

Judah

On Wed, Sep 10, 2008 at 2:16 PM, Brad Wood <[EMAIL PROTECTED]> wrote:

> Well according to a quick (iterative) test on CF 8.0.1 evaluate seems to be
> about 5 times slower than the array notation.
> Of course, we're still talking about the difference between 1 ms and 5
> ms's.
>
> I think that is very good information to know and use, but frankly I would
> agree that readability should take precedence until you run into a page
> doing enough processing to actually matter.
> I think the whole witch-hunt mentality is a little obtuse.   :)
>
> ~Brad
>
> ----- Original Message -----
> From: "Raymond Camden" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[email protected]>
> Sent: Wednesday, September 10, 2008 8:33 AM
> Subject: Re: using dynamic variable in cfset statement
>
>
> > As someone who used to always pounce on folks for using evaluate, I
> > believe I remember reading recently a blog entry from an Adobian that
> > points out that evaluate is not nearly as slow as it used to be.
> >
> > Now when I recommend against Evaluate I do so on readability terms
> > rather than performance. For almost every use of evaluate I see in the
> > field, the code can be rewritten in a cleaner, easier to understand
> > manner.
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312359
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