1 more speed question

Pierre Sahores psahores at easynet.fr
Wed May 18 12:28:13 EDT 2005


Very interessting...

Thanks JB.

Best,

Pierre

Le 18 mai 05, à 18:21, jbv a écrit :

> 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
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list