[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Redefining functions
- From: lua@...
- Date: Sat, 28 Sep 2002 22:18:46 +0200
>> This is bad for two reasons.
>> First, there are the memory issues you describe. A different copy of the
>> function is created each time, and remains until the garbage collector runs.
> Ah so if I force the garbage collector to run the memory problems
> should go away ? I'll look into that right now.
I tried this:
lua_setgcthreshold (L, lua_getgcthreshold (L));
to force the Garbage collector but still the memory footprint grows
dramatically. Is this the correct way to trigger the Garbage collector
Anything else I can do to find out what is going on here ?