[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: LUA GC predictability
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 12 Nov 1997 10:03:33 -0200
> I'm interested in the possibility of using LUA in semi real-time
> applications. This is not hard real time, but I can not tolerate the GC
> stepping in a couple of seconds once in a while.
Your program must have a lot of objects to take a couple of seconds from
the GC. In typical programs one GC cicle takes less than 1/10 second.
(Nevertheless, you can always use "collectgarbage", as suggested by lhf.
If you call it with INT_MAX, for instance, you will stop the collector)