Setting hidden of lines very slow
J. Landman Gay
jacque at hyperactivesw.com
Sat Dec 1 22:26:36 EST 2018
Right, and accessing a field is one of the most expensive operations in LC.
Maybe Richard will post his analogy to the maintenance worker again. I
found it both amusing and informative.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On December 1, 2018 8:18:52 PM Tom Glod via use-livecode
<use-livecode at lists.runrev.com> wrote:
> 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.
>
> Thanks
>
> 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
>> field.
>>
>> 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:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list