pre-MX6.1 there was a performance gain.  Now, if I understand
correctly, it all compiles down to the same java bytecode, so there's
no performance gain to speak of.

As far as there still being a 'benefit' to using it...I guess that's
subjective.  Some people like the script syntax better than tags. 
Some find it easier to read.  I think, at the very least, if you're
setting a ton of variables, cfscript is a bit quicker to type out.

<cfset varA = "foo1" />
<cfset varB = "foo2" />
<cfset varC = "foo3" />

varA = "foo1";
varB = "foo2";
varC = "foo3";

without having to type out the 'cfset' explicitly for each line (not
to mention the brackets), it's simply fewer keystrokes per line. 
Whether or not you find that to be a "benefit" (or at least, benefit
enough to use cfscript if you're more comfortable with tags) is
entirely your call.


On 1/2/06, Andy McShane <[EMAIL PROTECTED]> wrote:
> I was under the impression that there was a performance gain with cfscript,
> is that not the case? Is there no benefit to using cfscript?
>
> -----Original Message-----
> From: Aaron Rouse [mailto:[EMAIL PROTECTED]
> Sent: 30 December 2005 19:03
> To: CF-Talk
> Subject: Re: CFSCRIPT Question
>
> Probably not, could be debated that it was on older versions of CF.  I
> personally am a cfscript nazi, use it a lot more than I really should.
>
> On 12/30/05, Ben Doom <[EMAIL PROTECTED]> wrote:
> >
> > Is it ever actually necessary?  :-)
> >
> > --Ben
> >
> >
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:228126
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to