lua-users home
lua-l archive

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


Thanks MIke.

On 1/13/06, Mike Pall <mikelu-0601@mike.de> wrote:
> Hi,
>
> D Burgess wrote:
> > lua_gc now takes the LUA_COUNTB value.
> > for completeness, should collectgarbage() also have this same
> > parameter?
>
> collectgarbage("count") now calls LUA_COUNT and LUA_COUNTB.
> If your lua_Number happens to be a floating point type then
> you even get to see the result of this change:
>
> $ lua51rc1 -e 'print(gcinfo(), collectgarbage("count"))'
> 17      17.4833984375
> $ lua51rc1 -e 'print(gcinfo()*1024, collectgarbage("count")*1024)'
> 17408   18043
>
> Bye,
>      Mike
>