Encountering slow navigation to a card containing very large fields? Do this one simple trick.

Craig Newman craig at starfirelighting.com
Tue Apr 19 13:48:41 EDT 2022


David,

Likely does not matter, but I misspoke.

A mouseUp handler in the large locked field:

-  gets the value of the clickLine
-  hides the large field (itself)
-  shows a secondary field
-  loads information in that field.

Clicking on the secondary field does the reverse in terms of showing/hiding.. All this is basic stuff, but the time delay goes away. 

So navigating to other cards can be simulated by extracting and loading data on controls on the same card. The old HC “Rolodex" paradigm was attractive and comforting, and still has its uses. But HC could not support fields of greater than 32K, so this delay issue never came up. Also, HC could easily support many more cards than LC can.

Craig

> On Apr 19, 2022, at 1:13 PM, Craig Newman via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> David.
> 
> OK. So why not rethink the structure overall. I hate thinking at all, so rethinking is abhorrent, but oftentimes saves much grief.
> 
> I wish I was on the forum, but here goes.
> 
> I made a button that:
> 
> - gets the value of the clickLine as before
> - hides the big field
> - loads that information into another field on the same card.
> 
> Another button shows the big field again
> 
> All instantaneous.
> 
> Craig
> 
>> On Apr 19, 2022, at 11:53 AM, David V Glasgow via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>> That is exactly it, Craig!  Text processing and field responsivity on the card containing the fields are as fast as I could hope.  
>> 
>> It is simply navigating back to the card containing the fields that can take several seconds, depending on how much text is in the fields.  The workaround is to have invisible groups containing the field(s) placed on the card you are navigating from.  I assume that the text has to be shared, but I haven’t actually tested that.  
>> 
>> Best Wishes,
>> 
>> David Glasgow
>> 
>> 
>>> On 19 Apr 2022, at 3:50 pm, Craig Newman via use-livecode <use-livecode at lists.runrev.com> wrote:
>>> 
>>> I do see that navigating BACK to the card with the packed field takes almost two seconds. 
>>> 
>>> Craig
>> 
>> _______________________________________________
>> 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