tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: uuid_name_lookup()



On Sat, Aug 06, 2016 at 12:56:19AM -0700, John Nemeth wrote:
> It seems that I have three choices: extend sys/tree.h, convert
> uuid_name_lookup.c to use the newer sys/rbtree.h, or redo it
> completely.  I was thinking of a small array to cache the items
> being looked up.  It is highly unlikely that more then a handful
> of items will be needed at any given time, which means that using
> an rbtree is overkill and the time spent manipulating the tree is
> likely to be excessive overhead.  Any thoughts on which route to
> go?

4th alternative: provide the same api but internally use cdb(5)

Martin


Home | Main Index | Thread Index | Old Index