On Tue, 05 Jan 2010 16:53:55 -0500 Jeff Garzik <jeff@xxxxxxxxxx> 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 -- To unsubscribe from this list: send the line "unsubscribe hail-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html