Setting hidden of lines very slow

Richard Gaskin ambassador at
Sat Dec 1 19:45:59 EST 2018

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      

More information about the Use-livecode mailing list