Setting hidden of lines very slow
tom at makeshyft.com
Sat Dec 1 21:16:49 EST 2018
So the first form populates the field only once....since its a single
command so no other states of the field will exist.
Makes perfect sense.
On Sat, Dec 1, 2018 at 7:45 PM Richard Gaskin via use-livecode <
use-livecode at lists.runrev.com> wrote:
> Tom Glod wrote:
> > Can someone explain the seemingly extraordinary performance
> > improvement in using apparently its "split second" vs "over a minute"
> > set the hidden of line 1 to - 1 of field 1 to false
> > vs.
> > repeat with i = 1 the number of lines of fld 1
> > set the hidden of line i of fld 1 to false
> > end repeat
> > it doesn't seem like the loop would be the bottleneck here, but rather
> > the work on the field itself....but obviously, I know nothing about
> > this engine
> Think about all the steps a computer needs to take to render text in a
> Multiply that by the number of lines...
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> Ambassador at FourthWorld.com http://www.FourthWorld.com
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the Use-livecode