Re: Is there a way to manually trigger GC?

2021-01-17 Thread Tom Glod via use-livecode
PS > I just remembered why I loaded it ... its to enable fast searching of past text clips. But maybe I can lazy load image clips which are the ones that take up the most amount of ram anyways. On Sun, Jan 17, 2021 at 12:35 PM Tom Glod wrote: > Hi Phil, that function only reports available

Re: Is there a way to manually trigger GC?

2021-01-17 Thread Tom Glod via use-livecode
Hi Phil, that function only reports available memory. Hi Rick, My application, the Time Saver's Toolbox, has a clipboard manager, and upon loading the app, I load the existing archive of "clips" into memory. Currently for example, the app is using 37 megabytes of system ram. You are right,

Re: Is there a way to manually trigger GC?

2021-01-17 Thread Rick Harrison via use-livecode
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

Re: Is there a way to manually trigger GC?

2021-01-16 Thread Phil Davis via use-livecode
Hi Tom, Does hasMemory() have any effect on available memory, or does it truly just report the state of things? I wonder if there is some shell command that might help? Phil Davis On 1/16/21 11:31 AM, Tom Glod via use-livecode wrote: Hi Folks, I'm finding my application does a nice job

Is there a way to manually trigger GC?

2021-01-16 Thread Tom Glod via use-livecode
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