lua-users home
lua-l archive

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


>From lua-l@tecgraf.puc-rio.br  Mon Jul  3 20:16:41 2000
>From: Steve Dekorte <steve@dekorte.com>

>> I had to stop the robot at some specific times when Lua did
>> garbage-collection. If I kept it running while the garbage collection took
>> place the robot might drive off-course in the 1/3 of a second it took to 
>> do it.
>
>One trick to avoiding this problem is create as few new tables as possible 
>in your program - since it's the tables that are garbage collected.

That's not quite true. GC is triggered by the amount of *memory* allocated,
not the number of objects created.
--lhf