ewww... I hate long blocks of cfset's :)
Use cfscript instead when you have all those cfsets.. that'll speed
things up some more.
Additionally, a question: I've never had any problems with just
sticking data in a structure, but without "creating" the structure using
StructNew().. does anyone know what the implications of this are?
--
Billy Cravens
[EMAIL PROTECTED]
paul smith wrote:
>
> I got the difference down to 15% by eliminating CFSETs
> in the Structure version. (Structure still slower.)
>
>
> <CFSET STTEMP = STRUCTNEW()> <!--- temporary structure --->
> <CFSET APPLICATION.YPS = STRUCTNEW()> <!--- final structure for Headings --->
> <CFLOOP QUERY="GetYPs">
> <CFSET STTEMP["Class_ID"] = "#Class_ID#">
> <CFSET STTEMP["Class_Name"] = "#Class_Name#">
> <CFSET STTEMP["Pages"] = "#Pages#">
> <CFSET STTEMP["NewPages"] = "#NewPages#">
> <CFSET APPLICATION.YPS[STTEMP["Class_ID"]] = STRUCTCOPY(STTEMP)>
> <CFSET TMPVAR = STRUCTCLEAR(STTEMP)>
> </CFLOOP>
>
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.