From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mo-p00-ob.rzone.de (mo-p00-ob.rzone.de [81.169.146.162]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id p6VBTbxx020925 for ; Sun, 31 Jul 2011 07:29:38 -0400 (EDT) X-RZG-AUTH: :JiIXek6mfvEEUpFQdo7Fj1/zg48CFjWjQv0cW+St/nW/avgusCdvwXOZ/NA7x/bslxlDPy6G726REW7piU2JIqNTwRM= X-RZG-CLASS-ID: mo00 Received: from britannica.bec.de ([2001:6f8:13f0:0:5e26:aff:fe1e:99a9]) by smtp.strato.de (cohen mo58) (RZmta 26.2) with (DHE-RSA-AES128-SHA encrypted) ESMTPA id p0136bn6V9C2Vg for ; Sun, 31 Jul 2011 13:29:01 +0200 (MEST) Received: by britannica.bec.de (sSMTP sendmail emulation); Sun, 31 Jul 2011 13:29:00 +0200 Date: Sun, 31 Jul 2011 13:29:00 +0200 From: Joerg Sonnenberger To: tech@mdocml.bsd.lv Subject: Re: Need hash: uthash? Message-ID: <20110731112900.GA2434@britannica.bec.de> Mail-Followup-To: tech@mdocml.bsd.lv References: <4E313AC0.2010106@bsd.lv> <20110731104223.GB1831@iris.usta.de> X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110731104223.GB1831@iris.usta.de> User-Agent: Mutt/1.5.21 (2010-09-15) On Sun, Jul 31, 2011 at 12:42:23PM +0200, Ingo Schwarze wrote: > The first things we will be asked is: Why not use the existing > tools? If i understand correctly, uthash is a dynamic hasher > (as opposed to a perfect static hasher). What about hash(3) in > /usr/src/lib/libc/db/hash/ ? Is that useable? The db(3) interface is crap. It's easier to just write a small hash table from scratch, especially with a good hash function. Joerg -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv