[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: optimising table creation; garbage collection
- From: David Jones <drj@...>
- Date: Wed, 23 Aug 2006 08:42:52 +0100
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