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.
Cheers, -- Shawn Walker _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
