[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: How to collect as much as possible with collectgarbage() ?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 10 Jul 2009 09:35:45 -0300
>> 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
On several machines an int is not large enough to count memory. It
seems better to lose precision than the most significant bits.