]> Cypherpunks repositories - gostls13.git/commit
runtime: use better hash for floating point inputs
authorRuss Cox <rsc@golang.org>
Wed, 6 Aug 2014 20:47:54 +0000 (16:47 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 6 Aug 2014 20:47:54 +0000 (16:47 -0400)
commit5fbcdb26613a819ba693ee3933f6e283e139630b
tree991b2a39fa54562ca25a1ce03744e1ffb7f03172
parent1338f327b2deb81ba81107b5033d1b10e97e3abe
runtime: use better hash for floating point inputs

Hashing on the bytes instead of the words does
a (much) better job of using all the bits, so that
maps of floats have linear performance.

LGTM=khr
R=golang-codereviews, khr
CC=adonovan, golang-codereviews
https://golang.org/cl/126720044
src/pkg/runtime/alg.go