]> Cypherpunks repositories - gostls13.git/commit
internal/sync: use normal comparison for keys in HashTrieMap
authorMichael Anthony Knyszek <mknyszek@google.com>
Fri, 21 Jun 2024 20:03:16 +0000 (20:03 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 18 Nov 2024 20:30:18 +0000 (20:30 +0000)
commit36b5b053beaa649795a85dfe025f93a2e34c952b
treeb3fbd73be7614de26d229f1441bbff08b4e90c8c
parente51a33a0efa5883a9be5c46e95554a52070cb696
internal/sync: use normal comparison for keys in HashTrieMap

There's are unnecessary calls to the key's equal function -- we can just
leverage the language here. Leave the values alone for now, we want to
relax that constraint.

Change-Id: Iccfaef030a2a29b6a24a7da41e5e816b70091c7c
Reviewed-on: https://go-review.googlesource.com/c/go/+/594060
Auto-Submit: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
src/internal/sync/hashtriemap.go