> 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>

It makes no significant difference, and you should favor readability over
speed in this case anyway.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to