lua-users home
lua-l archive

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


On Thu, 09 Dec 2004 10:44:11 -0500, John Paquin
<jpaquin@breakawaygames.com> wrote:
> hmmm, so your storing your tables in the instance, not in the class
> definition?  doesn't that waste a lot of memory?

Well, actually, yes it did waste a lot of memory :). Caching was
disabled recently because we're hurting more for memory than CPU. If I
get the time, I might re-enable caching but put cached values in the
first parent table which I think is what you suggest (so, more like
classic C++ vtbls).

Anyway, whether things are cached in the instance or the first parent,
or what-have-you, the idea is pretty much the same: before you reload
class C, clean out all cached references to things in C.

p