[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Garbage collection of function tables
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sat, 28 Mar 2009 09:43:22 -0300
> Ralph Hempel wrote:
> > Unfortunately, it's still about 11K. What am I not
> > understanding about garbage collection of unsused table
> > entries?
>
> You have to clear registry._LOADED, too.
package.loaded...
This function may be useful:
function unrequire(m)
package.loaded[m] = nil
_G[m] = nil
end
unrequire"string"
unrequire"table"
unrequire"debug"
unrequire"math"