Re: LC Garbage Collection?

2019-09-27 Thread Richard Gaskin via use-livecode
I think "large" is dependent on context. I've used LSON files larger than 100 MB, but I don't know that I would recommend that for all possible use cases. The bug DB link in this post suggests that size of a given array isn't necessarily a problem or not a problem, it all depends on what spe

Re: LC Garbage Collection?

2019-09-27 Thread J. Landman Gay via use-livecode
Do we have a ballpark idea of what "large" might be? Is it more like a gigabyte or a few hundred megabytes or...? I know it will be variable and depend on other factors, but it would be nice to have a general idea. On 9/26/19 11:12 PM, Dar Scott Consulting via use-livecode wrote: I don't think

Re: LC Garbage Collection?

2019-09-26 Thread Dar Scott Consulting via use-livecode
I don't think that is large. If you are processing data the same size and somehow leaving the previous data around, that might build up. That might build up in queues and stacks, in a message storm and in appended data. But, I am guessing that that is not likely. > On Sep 26, 2019, at 1:54 PM,

Re: LC Garbage Collection?

2019-09-26 Thread Richard Gaskin via use-livecode
Tom Glod wrote: > Hi folks, I'm wondering if anyone can help me to understand > Livecode's garbage collection. I am developing an application that > is intended to stay in memory and so I must watch memory consumption > carefully. I've had some instances where memory ran way out of > control...

Re: LC Garbage Collection?

2019-09-26 Thread Tom Glod via use-livecode
2.5 mb is not big at all. please remember to test with 9.05 when worried about leaks. On Thu, Sep 26, 2019 at 3:55 PM J. Landman Gay via use-livecode < use-livecode@lists.runrev.com> wrote: > On 9/24/19 2:39 PM, Dar Scott Consulting via use-livecode wrote: > > Sources of memory leaks are LC,

Re: LC Garbage Collection?

2019-09-26 Thread J. Landman Gay via use-livecode
On 9/24/19 2:39 PM, Dar Scott Consulting via use-livecode wrote: Sources of memory leaks are LC, LC scripts, OS, libraries, LCB and (I suppose) compilers. I don't think we can assume the problem is not in the user script. I have seen script memory leaks like these: 1. Leaving large data in scri

Re: LC Garbage Collection?

2019-09-24 Thread Tom Glod via use-livecode
Dar, you bring up some good points here thanks. i've been burned by that before. I do want to mention that I reported a bug a while back where not all messages were sent while wait with messages. panos seemed to have confirmed that problem, but it hasn't moved since. Maybe that part of the prob

Re: LC Garbage Collection?

2019-09-24 Thread Dar Scott Consulting via use-livecode
Yeah, "GUI recursion" is a little obtuse. I'm referring to a style of using wait with messages inside an event handler so that other events (especially keyboard and mouse) can be handled. Sometimes this is done to allow a "background" task. It is easy to do this in a way that makes a mess of th

Re: LC Garbage Collection?

2019-09-24 Thread Tom Glod via use-livecode
HH...yup I know.. Dar, thanks for those hints and tidbits, I'll be putting those right into my pocket as i optimize code going forward. I have pretty good cleanup habits, so I am getting good results with how it is (in 9.05) . but sometimes its scary. It like the GC happens only when thi

Re: LC Garbage Collection?

2019-09-24 Thread Dar Scott Consulting via use-livecode
I don't know where you will find details. (Maybe if we keep this conversation going, we will get a response in a half day.) I believe it is reference-counting with lazy cleanup for high-level objects, but with carefully crafted destructors for low level objects. Because of the lazy cleanup, it

Re: LC Garbage Collection?

2019-09-24 Thread hh via use-livecode
LC 9.0.5 closed at about 42 memory leaks ... ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode

LC Garbage Collection?

2019-09-24 Thread Tom Glod via use-livecode
Hi folks, I'm wondering if anyone can help me to understand Livecode's garbage collection. I am developing an application that is intended to stay in memory and so I must watch memory consumption carefully. I've had some instances where memory ran way out of control but I found a couple of re