lua-users home
lua-l archive

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

>> On a related note, I've been wondering why collectgarbage("count")
>> returns the current memory use in kilobytes instead of bytes? When
>> using Lua with an integer core instead of floating point we're losing
>> some precision and on an embedded platform those small bytecounts are
>> significant.

On several machines an int is not large enough to count memory. It
seems better to lose precision than the most significant bits.

-- Roberto