Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime: using fallback hash unconditionally #37212

Closed
randall77 opened this issue Feb 13, 2020 · 1 comment
Closed

runtime: using fallback hash unconditionally #37212

randall77 opened this issue Feb 13, 2020 · 1 comment
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@randall77
Copy link
Contributor

First reported in #37086 by @slinso:

i am not sure if this is related, but i saw some differences in map access performance, too. In my case I am not using interface{} as a key, but instead a map[int]int

https://github.com/SlinSo/random/blob/master/mapaccess_test.go

pprof excerpt:
go1.13.8:
0.73s 9.53% 82.64% 0.73s 9.53% runtime.aeshash64

go1.14rc1:
1230ms 15.81% 66.20% 1410ms 18.12% runtime.memhash64Fallback
140ms 1.80% 97.43% 140ms 1.80% runtime.memhash64

We should not be using the fallback hash unless the processor can't do the AES instructions (which, as evidenced by the 1.13 results, it has).

@randall77 randall77 self-assigned this Feb 13, 2020
@randall77 randall77 added this to the Go1.14 milestone Feb 13, 2020
@gopherbot
Copy link

Change https://golang.org/cl/219337 mentions this issue: runtime: fix fallback logic for aeshash on 32/64 bit

@dmitshur dmitshur added the NeedsFix The path to resolution is known, but the work has not been done. label Feb 14, 2020
@golang golang locked and limited conversation to collaborators Feb 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

3 participants