caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] int hash
@ 2004-07-14  9:33 skaller
  2004-07-14 12:16 ` [Caml-list] " Julian Brown
  0 siblings, 1 reply; 6+ messages in thread
From: skaller @ 2004-07-14  9:33 UTC (permalink / raw)
  To: caml-list

I'm currently using a lot of hashtables with
sequentially allocated integers as keys.

It occurs to me a custom hash function just
masking in the low n bits would be a good hash
function, and very fast, assuming n is chosen
suitably and related somehow to the table
size. (size=2^n?) .. any comments on the performance
of a hashtable with such a hash function?

-- 
John Skaller, mailto:skaller@users.sf.net
voice: 061-2-9660-0850, 
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language http://felix.sf.net



-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-07-14 21:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-14  9:33 [Caml-list] int hash skaller
2004-07-14 12:16 ` [Caml-list] " Julian Brown
2004-07-14 14:27   ` skaller
2004-07-14 14:46     ` Richard Jones
2004-07-14 21:29       ` skaller
2004-07-14 15:32   ` henri dubois-ferriere

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).