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.heaf...@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.schonewi...@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.
> 

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to