On Thu, Aug 25, 2011 at 12:56:00PM +1000, Angus Salkeld wrote: > On Mon, Aug 08, 2011 at 09:41:10AM +0200, Jan Friesse wrote: > > Current objdb/confdb is really hard to use, because of all iterationing, > > ... It would be nice to replace it by hash table and thus for simple get > > item or set item, no iteration is needed. But iteration functionality > > should still somehow be there to allow user select for example all > > totem.* items. API proposal to be send later. > > Honza, here are some ideas...
Just to be clear I am talking about the Good/Bad of current objdb below not the proposed solution. > > The Good > ======== > it stores > - current config > - stats + statistics > > What is nice is that you can: > - dump this out at runtime and inspect it's state > - you can also modify the objects using objctl > - you get notification when values change > > The Bad > ======= > 1] The API is not easy to use > iteration and searching are clumsey > creating/finding a nested object is teadous > 2] Typing is not done well > so config is added as strings but needed later as say ints > and there are no helper functions for this > 3] Updating the statistics is starting to use more cpu than it should > To update an entry we have to retrieve it (memcpy's + refcounting) > _______________________________________________ Openais mailing list [email protected] https://lists.linux-foundation.org/mailman/listinfo/openais
