Comparative speed in switching among groups

David Epstein dfe4 at cornell.edu
Tue Nov 28 10:40:51 EST 2023


Many thanks to Richard, for his interesting results and for the reminder that speed testing is pretty easy.  I ran a similar test on a slightly different task--flipping among 50 different groups, or 50 different cards--and got similar results.  Adding a “lock messages” sped up the card option by a factor of 4, but the group option was much, much faster even then.
I’m trying to make it possible to scan quickly through a long document.
The remarks of Richard and Alex raise these questions for me:
1.  Is LC recalculating the line wraps of all fields every time we go to a card?  Is it not doing that when a hidden field on a card is shown (or is the field somehow “ready to go” even when the field is hidden)?
2. On the question of resizing:  One possibility is to adjust groups when (i.e., just before) they are shown.  But would it be speedier to do this in advance, when nothing else is happening?  The User Guide says “timer based messaging [is] ideal where you want your user interface to remain responsive.”  I’m not sure exactly how to do this, but it seems like on a resize event one could make a list of the hidden groups that need to be adjusted, and call them one at a time with something like 
send “upDateGroupLayout oneGroupID” to me in 10 milliseconds.  Is that right?

David Epstein



More information about the use-livecode mailing list