KeyToHash possibly letting key interfaces escape to heap
karlmcguire opened this issue · comments
As brought up in the performance Gopher channel, since we're using interface{}
for keys, this call to keyToHash
is probably letting the interface escape to heap.
Solution: switch over to string
or []byte
for public API calls.
@karlmcguire should the change be for keys or keys and values?