lua-users home
lua-l archive

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



On 23 Aug 2006, at 03:31, Damian Stewart wrote:

hi

i'm writing some code that at the moment does a lot of dynamic table creation, ie local bob = {}.

in order to get around this i thought of writing a RunTimeTableManager object which manages a table pool, and which i can query for new tables each time i want one, ie local bob = RunTimeTableManager.NewTable(), at which point the table is removed from the RunTimeTableManager's pool.

Seems like a lot of error prone work to me.

Did you do any profiling that convinced you that allocation and GC was taking much longer than you could afford?

drj