Descriptioncmd/6c, cmd/8c: avoid generating long multiplication when not necessary.
On amd64
benchmark old ns/op new ns/op delta
BenchmarkHashStringSpeed 91 74 -18.49%
BenchmarkHashInt32Speed 54 45 -17.88%
BenchmarkHashInt64Speed 76 58 -23.53%
BenchmarkHashStringArraySpeed 231 188 -18.61%
Fixes issue 5367.
Patch Set 1 #Patch Set 2 : diff -r a1c663e7a303 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 112ea225794f https://go.googlecode.com/hg/ #
Total comments: 2
Patch Set 4 : diff -r 0e1b2f7384d2 https://go.googlecode.com/hg/ #MessagesTotal messages: 16
|