Hi Terry,
The split command itself doesn't slow it down, because that happens
outside the repeat loop. However, arrays appear not to be the fastest
way to access data and apparently in this case the removal of the
counter was not enough to compensate for the addition of the arrays.
I see no thText in your original script. Perhaps you need to post more
code, including the part that retrieves the data from the database all
the way up to and including the part where it displays the data.
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553
Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other
colour spaces. http://www.color-converter.com
Buy my new book "Programming LiveCode for the Real Beginner"
http://qery.us/3fi
LiveCode on Facebook:
https://www.facebook.com/groups/runrev/
On 3/10/2014 16:07, Terence Heaford wrote:
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
_______________________________________________
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