fyi
but to answer your question, I would try developing both ways...cfloop
it, lets say 1000
times, throw a tick count @ the top and bottom, count the seconds from
beginning to end
do that a few times, maybe 10 or so, and it will most likely be evident.
since each system is different, trying it on your system will give you
the most accurate
results that mean anything to you.
....tony
r e v o l u t i o n w e b d e s i g n
[EMAIL PROTECTED]
www.revolutionwebdesign.com
its only looks good to those who can see bad as well
-anonymous
-----Original Message-----
From: Matt Robertson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 13, 2004 9:36 PM
To: CF-Talk
Subject: CFScript StructInsert or cfset. Which is faster?
I have a collection of parameters that I keep in a struct. Mostly out
of a perceived feeling that this is tidier. I use cfscript for this
sort of thing for speed. It occurs to me I should ask Those Who Know...
would it be faster to just use plain variables? Or a 2d array?An
example is below.
<cfscript>
Parameters=StructNew(); StructInsert(Parameters,"AllowMultiEdit","");
StructInsert(Parameters,"AllowMultiAdd","");
StructInsert(Parameters,"TotalCols",(ListLen(variables.Fields)+2);
StructInsert(Parameters,"FooterColSpan",ParameterGroup.TotalCols+1);
</cfscript>
--
-------------------------------------------
Matt Robertson, [EMAIL PROTECTED]
MSB Designs, Inc. http://mysecretbase.com
-------------------------------------------
--
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

