If the reason you are looking at <CFSCRIPT> is performance then don't
bother. Sure you may find subtle differences, but honestly, in the grand
scheme of things it has little impact. Here is some test code I just
wrote, copy and paste it in CFMX and try it - it just does a bunch of
loops and sets in both CFML and <CFSCRIPT> and graphs the results (it
repeats the tests to account for inconsistent highs and lows). You
should see that the difference is really not significant anymore (in
CFMX).
--- Ben
<!--- Set vars --->
<CFSET tests=20>
<CFSET loops=10000>
<!--- Create query to save results --->
<CFSET q=QueryNew("cfml,cfscript")>
<!--- Loop through tests --->
<CFLOOP INDEX="t" FROM="1" TO="#tests#">
<!--- Time CFML loop and sets --->
<CFSET l=GetTickCount()>
<CFLOOP INDEX="i" FROM="1" TO="#loops#">
<CFSET x=i>
</CFLOOP>
<CFSET l1=GetTickCount()-l>
<!--- Time CFSCRIPT loop and sets --->
<CFSET l=GetTickCount()>
<CFSCRIPT>
for (i=1; i LTE loops; i = i +1)
{
x=i;
}
</CFSCRIPT>
<CFSET l2=GetTickCount()-l>
<!--- Add this test to the query --->
<CFSET QueryAddRow(q)>
<CFSET QuerySetCell(q, "cfml", l1)>
<CFSET QuerySetCell(q, "cfscript", l2)>
</CFLOOP>
<!--- Now graph the results --->
<CFCHART CHARTHEIGHT="200" CHARTWIDTH="500" SHOWLEGEND="yes">
<CFCHARTSERIES TYPE="line" SERIESLABEL="CFML">
<CFOUTPUT QUERY="q">
<CFCHARTDATA ITEM="#CurrentRow#" VALUE="#cfml#">
</CFOUTPUT>
</CFCHARTSERIES>
<CFCHARTSERIES TYPE="line" SERIESLABEL="CFSCRIPT">
<CFOUTPUT QUERY="q">
<CFCHARTDATA ITEM="#CurrentRow#" VALUE="#cfscript#">
</CFOUTPUT>
</CFCHARTSERIES>
</CFCHART>
-----Original Message-----
From: Tony Weeg [mailto:tony@;navtrak.net]
Sent: Tuesday, November 12, 2002 3:57 PM
To: CF-Talk
Subject: RE: cfscript book
now I am asking all of these questions, is cfscript really that good to
use? or could I go all day long using cftags and never see much
performance difference....
.tony
Tony Weeg
Senior Web Developer
Information System Design
Navtrak, Inc.
Fleet Management Solutions
www.navtrak.net
410.548.2337
-----Original Message-----
From: Michael Dinowitz [mailto:mdinowit@;houseoffusion.com]
Sent: Tuesday, November 12, 2002 3:44 PM
To: CF-Talk
Subject: Re: cfscript book
Email me off list with what you want added to this doc and you'll have
your 10 minute reference. http://www.houseoffusion.com/docs/cfscript.htm
I know I need to put in the UDF portion (separate file now) and update
it to CFMX. What else would you like? Email me at
[EMAIL PROTECTED] with the answer to that.
>
> point taken...but still, even one of those '10 minute pocket
reference' type
> of books would be nice. the cf docs really are lacking when it comes
to
> cfscript. a few code samples, a few sample apps, etc...
>
> *i'd* shell out $9.95 for the cfscript pocket reference :)
>
> charlie
>
>
>
>
> > --- Ben
> >
> >
> >
> > -----Original Message-----
> > From: Massimo, Tiziana e Federica [mailto:massimo@;massimocorner.com]
> > Sent: Tuesday, November 12, 2002 3:04 PM
> > To: CF-Talk
> > Subject: Re: cfscript book
> >
> >
> > "Tony Weeg" <[EMAIL PROTECTED]> wrote in message
> > news:002e01c28a80$f2816b10$ba0b0a0a@;navtrak267...
> >> so, the question remains, is there one that really goes in depth
with
> >> cfscript?
> >
> > Nothing that goes up to the level I would love to see :-(
> >
> > A few advanced books on CF MX still have to hit the shelves, so
maybe
> > there is still hope, but I always felt cfscript was somewhat
neglected
> > in books...
> >
> > I know a guy who would love to read a dedicated book on the subject,
but
> > I guess he is busy frying other fishes right now
> >
> > ----------------------------
> > Massimo Foti
> > Team Macromedia Volunteer for Dreamweaver
> > http://www.macromedia.com/go/team
> > ----------------------------
> >
> >
> >
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm