Alex, thanks for jumping in here. I'll try that, but in the meantime I
must say that of all the posts I've ever made this is one of the most
gratifying. I just tried Phil's suggestion of increasing the X-mod to
100 and, just as Phil predicted, I was shocked at the results. Don't
know why I didn't think of it right off. Probably the end of the day or
the 2 glasses of wine with dinner, but increasing the X-mod did it.
This handler is now well within the acceptable range of time-to-execute
any user would expect.
Many thanks!
Ray
LinkIt! Software
On 2/17/2014 7:31 PM, Alex Tweedly wrote:
Or make it time-based rather than number-of-times-through-a-loop
put the millisecs into t1
repeat ....
if the millisecs-t1 > somenumberofmillisecs then
set the cursor to busy
put the millisecs into t1
end if
..... do something useful
end repeat
-- Alex.
On 18/02/2014 00:27, Phil Davis wrote:
You may have done this already, but experiment with other cursor
update intervals - like every 50th or 100th time. You may be shocked!
Phil
On 2/17/14, 4:21 PM, Ray wrote:
Ah Haa!! You've shaved another 3 and a half seconds off what started
out as 40 seconds, got cut down to 5, and is now just 1.5 seconds.
Very good!
Phil - many thanks for your help on this. I'll probably use these
ideas on many handlers to come.
Ray
On 2/17/2014 7:06 PM, Phil Davis wrote:
put 0 into x
repeat
add 1 to x
if x mod 10 = 0 then set cursor to busy
....
end repeat
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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