Switching /etc/*.db from bdb to tinycdb
Baptiste Daroussin
bapt at FreeBSD.org
Mon May 7 20:39:33 UTC 2012
On Mon, May 07, 2012 at 01:23:25PM -0700, Stanislav Sedov wrote:
> On Wed, 2 May 2012 13:41:15 +0200
> Baptiste Daroussin <bapt at FreeBSD.org> mentioned:
>
> >
> > Any opinion, ideas, advices on this?
>
> Did you look at leveldb [1], btw? It seems to be very fast, better supported, and
> support some advanced features that can be useful for other base applications
> (like transactions, custom sorting, snapshots).
>
> It's distributed under BSD license.
>
> [1] http://code.google.com/p/leveldb/
>
Yes I had a look, and it doesn't fit imho:
1/ leveldb is c++ while for all our get*ent functions are in libc and needs to
acees the db files.
2/ leveldb is really huge compare to tinycdb.
Btw: an unexpected gain of cdb is that for services for example the size of the
db is greatly reduces from 2M to 800K here, doesn't matter much but it is cool
:)
regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20120507/a4d69441/attachment.pgp
More information about the freebsd-arch
mailing list