Tips for speed
Posted: Sat Aug 23, 2014 7:21 pm
I was reading a recent post, when I noticed Klaus' admonition:
1. Avoid accessing FIELDS in repeat loops, that's a big slowdown!
I realized that such pearls of wisdom are strewn all over this forum and I remember reading many of them, but can't recall a single one !!!
Did someone say "repeat for each item ...." is faster than "repeat for each word ...." or "repeat for each line" ?
Or, when would the use of an array be slower than a list? Etc.
I am starting this topic for you veterans to post your LiveCode aphorisms for speed (in a sentence or two).
Please number and bold them (as I have done Klaus' tip above).
There are a lot of people like me who'd be grateful to have this collection in one place.
Thanks,
Sri.
1. Avoid accessing FIELDS in repeat loops, that's a big slowdown!
I realized that such pearls of wisdom are strewn all over this forum and I remember reading many of them, but can't recall a single one !!!
Did someone say "repeat for each item ...." is faster than "repeat for each word ...." or "repeat for each line" ?
Or, when would the use of an array be slower than a list? Etc.
I am starting this topic for you veterans to post your LiveCode aphorisms for speed (in a sentence or two).
Please number and bold them (as I have done Klaus' tip above).
There are a lot of people like me who'd be grateful to have this collection in one place.
Thanks,
Sri.