properties vs local variable
Terence Heaford
t.heaford at btinternet.com
Mon Mar 10 11:07:17 EDT 2014
Hi Mark,
Have tried your adjustments to my script and it was a little slower than the original.
Could that be because of the split command?
I read the data in from an SQLite file in the return/tab delimited format.
put revDataFromQuery(tab, return, the uDB of this stack, tSQL) into tData
then I pass the data to the group
set thText of group “myTable" of cd “myCard" of stack “myStack" to tData
I wonder if I split the data into an array and pass it directly to the group as an array if that would be quicker because there would be no need for the split to occur in the displayData routine?
All the best
Terry
On 10 Mar 2014, at 14:41, Terence Heaford <t.heaford at btinternet.com> wrote:
> Hi Mark,
>
> Thanks for your comments, will give it a try.
>
> All the best
>
> Terry
>
> On 10 Mar 2014, at 14:10, Mark Schonewille <m.schonewille at economy-x-talk.com> wrote:
>
>> Hi Terry,
>>
>> Can you use arrays? They aren't necessarily faster, but in this case they might be. Although you have a repeat-for loop, you're still updating a counter to keep track of your second data list. Using arrays just might speed things up, because the engine won't need to count things from the beginning in every loop but can instead read the correct elements from both arrays directly. I suspect this solution will either be slower or just a little fast, but it could be worth a try.
>
More information about the use-livecode
mailing list