lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

>> 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 ?