[erlang-questions] Ready to use hash functions in Erlang

Martin Bjorklund mbj@REDACTED
Fri Nov 20 11:59:06 CET 2009


zabrane Mikael <zabrane3@REDACTED> wrote:
> Hi Martin !
> 
> > I'm interested in some fast and well distributed hash functions made by
> > > gurus in this domain like lookup3 (Bob Jenkins -
> > > http://burtleburtle.net/bob/hash/doobs.html)
> >
> > phash2() uses Bob Jenkins' function iff you pass it a binary.
> 
> 
>  Excellent. And do you know if it was build in pure Erlang or as a linked
> Erlang driver?
> Where can I find the source code?

It's a bif.  See block_hash() in erts/emulator/beam/utils.c.


/martin


More information about the erlang-questions mailing list