1 more speed question
Dar Scott
dsc at swcp.com
Wed May 18 12:42:57 EDT 2005
On May 18, 2005, at 10:21 AM, jbv wrote:
> does that mean that only the fact that each successive line
> is in a variable (and hence has its content easier to access
> than in a huge variable with dozens or hundreds of lines)
> matters, and that it has nothing to do with the repeat
> structure per se ?
Naw.
Repeat for each line is fastest.
Then is repeat counting lines and getting the line once.
Then is repeat counting lines and getting it multiple times.
Also avoid putting into line n in a loop. You normally want to
accumulate lines. Put it & lf after your accumulator variable and then
drop the last char after the loop if you don't want it.
dar
--
**********************************************
DSC (Dar Scott Consulting & Dar's Lab)
http://www.swcp.com/dsc/
Programming and software
**********************************************
More information about the use-livecode
mailing list