Scripting what should be a simple loop...

David C. davidocoker at gmail.com
Sat Jul 10 07:16:56 EDT 2010


In regard to my question about using arrays, Mark W. said:
>Well, it's not regular variables that are the issue here. An array is
>*MUCH* faster than a "do" statement. Do statements are very slow, and
>I only use them sparingly and when there's no alternative. But when
>you gotta, you gotta.

In this case, I don't "gotta" so I won't. The application is pretty
much finished and stable just as it is and I can't see that I'll be
making any changes that might impede the already fair performance.
This whole conversation began with my looking for ways that might
speed things up instead of going the other direction. ;)

To which Mark S. added:
>David and Mark,
>
>Yet, repeat for each rules. Whether using arrays is faster than using regular
>variables depends on whether your repeat loop is written smartly.

Thanks guys. Since I basically just finished rebuilding most of the
app, I'll keep that info in mind for my future projects and/or perhaps
yet another revision for this one at some point.

Amongst other things, Richmond said:
>Well; speaking as a relative baby (48 last February) I ca cheerfully say:
>
>1. My short term memory is already half-rotted.
>
>2. I cannot tell you much about what is termed "long-term memory" as I don't seem to have one
>   beyond a series of oft-repeated anecdotes which drive my teenage sons up the wall.
>
>3. Having suffered from an element of creative insanity all my life a bit of "loss of
>   cognitive ability" might not necessarily be all bad . . .  :)
>
>So long and thanks for all the fish.

As well as...
>The 'Magic Moment', the intuitive flash often wipes the circles and arrows
>clean away; but I often find that the magic moment doesn't happen until
>I have driven myself spare with toys on the floor.

Sir, I honestly appreciate your slightly off-beat humor and insight to
almost any subject. I always enjoy reading your messages. Thanks. :)

René added:
>Hello Bob, Sarah, Mark, Alex, Scott, Kay,
>Very good lesson !!!
>Yes ! Better than documentation !
>It is a good example for witch I appreciate "How to use Revolution"
>I imagine that many silent readers appreciate like me and I thank you on their behalf...

You are absolutely right! These good folks are about as knowledgeable
and helpful a bunch, as I've seen anywhere. Good stuff for sure.

Again, thanks for the contributions and help everyone!



Best regards,
David C.



More information about the use-livecode mailing list