In this case, the keys are strings. I'm assuming the hash function is pretty fast. There should only be about 10 keys max, though.
-j On Thu, Oct 02, 2008 at 05:41:59PM -0700, Dan Price wrote: > On Thu 02 Oct 2008 at 07:34PM, Shawn Walker wrote: > > In the case that you had a lot of items, I could see the try/except > > being faster since you wouldn't incur the lookup expense. In initial > > attempts, I could see the exception overhead slowing things down. > > That has been my observation in the past, that the try/except overhead is > too much. The "key" thing is to make sure your key type has a fast hash > function. > > -dp > > -- > Daniel Price - Solaris Kernel Engineering - [EMAIL PROTECTED] - > blogs.sun.com/dp > _______________________________________________ > pkg-discuss mailing list > [email protected] > http://mail.opensolaris.org/mailman/listinfo/pkg-discuss _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
