1 more speed question
jbv
jbv.silences at Club-Internet.fr
Wed May 18 12:21:56 EDT 2005
for year we've been told that
repeat for each line j in myVar
runs significantly faster than
repeat for i=1 to number of lines in myVar
that's true, but if you use the following
repeat with i=1 to number of lines in myVar
get line i of myVar
and then do all your processing in the "it" variable
(and then "put it in line i of myVar" at the end of the
repeat loop if necessary), in that case the "repeat with i..."
statement seems to run as fast as "repeat for each line..."
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 ?
Thanks,
JB
More information about the use-livecode
mailing list