Is there a way to manually trigger GC?

Rick Harrison harrison at
Sun Jan 17 12:19:08 EST 2021

Hi Tom,

Garbage Collection and releasing memory is not an
easy problem to solve.  It would be better to try to
figure out why your application is chewing up so
much memory on load.

Load times can be improved by only loading in
stuff that you absolutely need to access at the
moment to display to your user.  If you can stall
loading things until idle you may be able to smooth
out performance.  This is usually things like trying
to load tons of images all at once for a game etc.

On the plus side, the fact that memory use drops
down after load to under 100 mb is good.

If you are using a lot of images, are they part of
the stack or are you trying to load them after the
program is running?

Lots of things affect performance.  Try to think
of what might be hampering that.

Good luck!


> On Jan 16, 2021, at 2:31 PM, Tom Glod via use-livecode <use-livecode at> wrote:
> Hi Folks,
> I'm finding my application does a nice job to unload data from memory, but
> it takes a while for that to happen.  When the initial load of the
> application occurs, the memory consumption is quite high if there is lots
> of data to be loaded (1 GB+).
> But after a while, the used ram drops down to under 100 mb as the
> application run in the background, after which the application swaps is
> only the data I am accessing.
> Can I trigger that memory release manually? (Maybe its another mechanism
> and not GC?!)
> Tom Glod
> Founder & Developer
> MakeShyft R.D.A (
> Mobile:647.562.9411
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the use-livecode mailing list