[cfe-dev] RFC: change string hash function in libc++

Sandeep Patel deeppatel1987 at gmail.com
Fri Dec 2 18:10:08 PST 2011


On Sat, Dec 3, 2011 at 1:59 AM, Craig Silverstein <csilvers at google.com> wrote:

> Answering another question, Austin said all tests were performed on an
> x86_64 machine with gcc 4.6.x, with code compiled via gcc -O2.
> Results can differ on different platforms/compilers/etc, making the
> choice of a 'best' hash function difficult.  Overall, I think either
> cityhash or murmurhash would be great choices, and better than what
> exists in libc++ now.  I don't want to get too bogged down in choosing
> between them.

It would be good to know how LLVM performs on these functions so we
can fix any CodeGen issues concurrent with the changes in libc++.

deep




More information about the cfe-dev mailing list