lua-users home
lua-l archive

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

> 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...

-- | certain, a.  insufficiently analysed