Practical limits on object counts

Richard Gaskin ambassador at fourthworld.com
Sat Oct 3 19:41:14 EDT 2009


Phil Davis wrote:

> on mouseUp
>    lock screen
>    lock messages
>   
>    create group "test"
>    repeat with x = 1 to 12000
>       create btn ("test_" & x) in grp "test"
>       if x mod 100 = 0 then put x
>    end repeat
>    remove grp "test" from this cd
>   
>    unlock messages
>    unlock screen
>    beep
> end mouseUp
> 
> 
> Then I did this in msg:
> 
> put the id of button 4444 of bg "test"
> 
> ... which returned this:
> 11212
> 
> So you CAN access those objects.

Oh, I can access them alright, at least in my own tests up to a modest 
11,000 buttons.

But here's the catch:  how long does it take for the button to hilite 
when you click on it?

Between the lag in hit testing and the loooong save times and more, I'm 
using 7k objects as an upper threshold for getting work done.

--
  Richard Gaskin
  Fourth World
  Rev training and consulting: http://www.fourthworld.com
  Webzine for Rev developers: http://www.revjournal.com
  revJournal blog: http://revjournal.com/blog.irv



More information about the use-livecode mailing list