[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.1 (final,rc) now available
- From: Mike Pall <mikelu-0601@...>
- Date: Fri, 13 Jan 2006 01:31:12 +0100
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