If you looked at the Java generated by CFMX 6.0 from two templates of
identical logic -- one using CFML and the other using CFSCRIPT -- you could
plainly see the difference in efficiency.  Each line of CFML-based logic was
wrapped in a Java do-while loop, while there was only a single do-while loop
surrounding the entire block of CFSCRIPT-based logic.  We show this as part
of our ColdFusion MX Master Class in the section on CFSCRIPT.

The compiler changed in 6.1, but I don't know if that affected how
CFML-based logic translated into Java (they removed the ability to generate
source files).

Respectfully,

Adam Phillip Churvis
Member of Team Macromedia

Advanced Intensive ColdFusion MX Training:
* ColdFusion MX Master Class
* Advanced Development with CFMX and SQL Server 2000
http://www.ColdFusionTraining.com

Download CommerceBlocks V2.1 and LoRCAT from
http://www.ProductivityEnhancement.com

The ColdFusion MX Bible is in bookstores now!
----- Original Message -----
From: "Damien McKenna" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, July 09, 2004 12:24 PM
Subject: cfscript speed?

> When I started my job in February I noticed a lot of code that used
> CFSCRIPT extensively, often for minor things like setting a single
> variable.  Is there a reason why this would have been done?  For
> readability I've been changing them to the tag format.
> --
> Damien McKenna - Web Developer - [EMAIL PROTECTED]
> The Limu Company - http://www.thelimucompany.com/ - 407-804-1014
> "Nothing endures but change." - Heraclitus
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to