[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Tracking number of pairs in a dictionary
- From: Jorge <xxopxe@...>
- Date: Wed, 30 Sep 2009 14:49:28 -0300
On Wed, 2009-09-30 at 12:03 -0500, Javier Guerra wrote:
> On Wed, Sep 30, 2009 at 11:36 AM, Jorge <email@example.com> wrote:
> > The pseudo pseudo code goes something like "if there's space in the
> > table add the entry, else search for one entry to be replaced".
> any reason why you can't just use a weak table and let the garbage
> collector deal with it?
This dictionary is the structure that actually holds my data, which
isn't available anywhere else.
I thought of having two tables pointing to the same data, an array and a
weak dictionary, but it looks a bit cumbersome.