[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua gc in games
- From: Reuben Thomas <rrt@...>
- Date: Mon, 6 Aug 2001 08:38:54 +0100 (BST)
> I've been pondering this for a while, and one solution that would
> probably not be too hard, is to introduce the concept of
> "const data" to the Lua GC. All of this (somehow specially marked)
> const data would be placed in a separate set of structures in
> Lua. When GC fired, it would simply not check this set at all.
> Also, if a non-const piece of data were to reference this set,
> the GC would not need to continue collecting in the const data.
> With my limited knowledge of Lua, this seems easier to me than
> writing a full incremental GC.
...or Lua could use a generational garbage collector...
--
http://sc3d.org/rrt/ | certain, a. insufficiently analysed