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

David Glasgow dvglasgow at gmail.com
Fri Apr 15 13:27:22 EDT 2022


Hi folks,


MacOS 10.13.6 and Livecode 9.6.0

It may be that this is well known to everyone but me.  But just in case...

I have a card (A) with two fields in separate groups.  Field 1 contains many many thousands of lines of text which are filtered for keywords and the results displayed in field 2 (which can also be many thousands of lines).  The user can navigate to a separate card (B) to view summary statistics and a bar chart.

I found that worked fine, but navigating back from B to A always  took many seconds and looked like a hang.  The delay seemed to be in some way proportional to the number of lines in field 1 and field 2.

By a slip of the finger I discovered that this lag disappears completely if the groups containing field 1 and 2 are also placed on the summary stats card B.  There is no real need for either to be there otherwise , and it seems they can even be invisible.  I tried to see if there is a significant memory overhead to doing this, but there doesn’t seem to be.

Is this a known thing?  And either way, is there a better approach, or a downside I haven’t considered?

Best Wishes,

David Glasgow



More information about the use-livecode mailing list