On Mon, Feb 01, 2010 at 01:29:42PM -0600, Shawn Walker wrote:
> On 02/ 1/10 01:26 PM, [email protected] wrote:
> >On Mon, Feb 01, 2010 at 01:17:18PM -0600, Shawn Walker wrote:
> >>    Why not use a dict instead here?
> >
> >Storing the objects in a list uses less space.  Since the requests are
> >now unique when identified by a url and uuid tuple, it seemed obvious to
> >store these as a tuple.  Can you explain what you think will be gained
> >by using a dict here?  It didn't seem like an obvious choice to me.
> 
> A dict or a set would be fine, but checking for a key in a dict
> should be faster than checking for a tuple pair in a list.  I don't
> know about a set.

Ok.  I will benchmark different approaches before making a final
decision.

Thanks,

-j
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to