From: Pete Zaitcev <zaitcev@redhat.com>
To: Jeff Garzik <jeff@garzik.org>
Cc: Project Hail List <hail-devel@vger.kernel.org>
Subject: Re: Design challenges in chunkd self-checking
Date: Tue, 5 Jan 2010 15:10:45 -0700 [thread overview]
Message-ID: <20100105151045.6e752c70@redhat.com> (raw)
In-Reply-To: <4B43B4F3.8070500@garzik.org>
On Tue, 05 Jan 2010 16:53:55 -0500
Jeff Garzik <jeff@garzik.org> wrote:
> If you have a constant pointer value [for the lifetime of the hash table
> entry], use g_direct_hash. If you have a nul-terminated string, GLib
> also has g_str_hash.
Of course I considered these, but thanks to our keys being a random
byte string now (remember whose idea it was?), and not having all
keys listed somewhere (obviously), neither works.
> Otherwise, I would pick something simple like djb's hash. There is a
> version in nfs4d/main.c that you can grab. djb put his code into the
> public domain, which makes licensing easy.
I'll give it a thought, thanks. I thought I liked Hsui's SuperFastHash,
but oh well.
-- Pete
prev parent reply other threads:[~2010-01-05 22:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-22 21:41 Design challenges in chunkd self-checking Pete Zaitcev
2009-12-22 22:43 ` Jeff Garzik
2009-12-23 1:40 ` Pete Zaitcev
2009-12-23 3:36 ` Jeff Garzik
2010-01-05 20:47 ` Pete Zaitcev
2010-01-05 21:02 ` Jeff Garzik
2010-01-05 21:39 ` Pete Zaitcev
2010-01-05 21:53 ` Jeff Garzik
2010-01-05 22:10 ` Pete Zaitcev [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100105151045.6e752c70@redhat.com \
--to=zaitcev@redhat.com \
--cc=hail-devel@vger.kernel.org \
--cc=jeff@garzik.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.