From owner-freebsd-arch@FreeBSD.ORG Mon May 7 20:39:33 2012 Return-Path: Delivered-To: freebsd-arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B6C441065674; Mon, 7 May 2012 20:39:33 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9B6598FC14; Mon, 7 May 2012 20:39:33 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q47KdXAC012082; Mon, 7 May 2012 20:39:33 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q47KdXa1012081; Mon, 7 May 2012 20:39:33 GMT (envelope-from bapt@FreeBSD.org) X-Authentication-Warning: freefall.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f Date: Mon, 7 May 2012 22:39:29 +0200 From: Baptiste Daroussin To: Stanislav Sedov Message-ID: <20120507203929.GS17325@azathoth.lan> References: <20120502114115.GG31034@azathoth.lan> <20120507132325.c4bfae2d.stas@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bGopQmzlzQgFk3Fg" Content-Disposition: inline In-Reply-To: <20120507132325.c4bfae2d.stas@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-arch@FreeBSD.org Subject: Re: Switching /etc/*.db from bdb to tinycdb X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 May 2012 20:39:33 -0000 --bGopQmzlzQgFk3Fg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 07, 2012 at 01:23:25PM -0700, Stanislav Sedov wrote: > On Wed, 2 May 2012 13:41:15 +0200 > Baptiste Daroussin mentioned: >=20 > >=20 > > Any opinion, ideas, advices on this? >=20 > Did you look at leveldb [1], btw? It seems to be very fast, better suppo= rted, and > support some advanced features that can be useful for other base applicat= ions > (like transactions, custom sorting, snapshots). >=20 > It's distributed under BSD license. >=20 > [1] http://code.google.com/p/leveldb/ >=20 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 c= ool :) regards, Bapt --bGopQmzlzQgFk3Fg Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAk+oMwEACgkQ8kTtMUmk6Ew5QwCfXbRKLZRpLBYsrY4wicBz1ACg EIkAn3T5RC8HJLO/XwwPFH35h4e19XiP =1MaB -----END PGP SIGNATURE----- --bGopQmzlzQgFk3Fg--