The for loop in CF 4.x was much slower. CF 5's version of it is almost as fast as a 
CFLOOP. I've tested it but have to look up where I have the stats. Probably in a FA 
article.

At 02:20 PM 3/26/02, you wrote:
>Any one know if this performs better in cf5? Would it be sufficient to test
>just by wrapping the 2 different methods in gettickcount?
>
>Thanks
>
>Kola
>
>> >-----Original Message-----
>> >From: Erika L. Walker-Arnold [mailto:[EMAIL PROTECTED]]
>> >Sent: 26 March 2002 12:08
>> >To: CF-Community
>> >Subject: Looping through a recordset with CFSCRIPT Continued
>> >
>> >
>> >>From an earlier question on CF-Talk .....
>> >
>> >Someone wanted to loop through a recordset within a CFSCRIPT
>> >block, so from
>> >our esteemed listmaster's docs
>> >(http://www.houseoffusion.com/docs/cfscript.htm) we have this
>> >example (great
>> >stuff by the way):
>> >
>> ><CFSCRIPT>
>> >     For (i=1;i LTE Queryname.Recordcount; i=i+1)
>> >          writeoutput(Queryname.Record[i]&'<BR>');
>> ></CFSCRIPT>
>> >
>> >In regular CF:
>> >
>> ><cfloop query="queryName">
>> >   <cfoutput>#Record#<br></cfoutput>
>> ></cfloop>
>> >
>> >Which is better? Should I use CFSCRIPT for looping through and displaying
>> >complicated data tables or continue with regular CFOUTPUT?
>> >
>> >
>> >Erika
>> >(with a *K*)
>> >
>> >"Life...  is like a grapefruit.  It's orange and squishy,
>> >and has a few pips in it, and some folks have half a one for breakfast."
>> >-----------------------------------------------------
>> >Erika L. Walker-Arnold, VP, RUWebby, LLC
>> >-----------------------------------------------------
>> >Macromedia ColdFusion Alliance Partner
>> >Macromedia ColdFusion 5.0 Certified Developer
>> >-----------------------------------------------------
>> >
>> >
>
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to