]> Cypherpunks repositories - gostls13.git/commit
internal/runtime/maps: avoid table lookup on most Iter.Next calls
authorMichael Pratt <mpratt@google.com>
Fri, 18 Oct 2024 20:17:12 +0000 (16:17 -0400)
committerGopher Robot <gobot@golang.org>
Wed, 30 Oct 2024 15:35:37 +0000 (15:35 +0000)
commit7b3ac0ca5d168afda5d5c244eeb79aae021ecbe2
tree1022d088ef8f0b45efa1d61f32d08653630cdee0
parentd51f92e73751fd8fb7455927ecabd85becd13f06
internal/runtime/maps: avoid table lookup on most Iter.Next calls

Speeds up iteration by about 3%.

For #54766.

Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest-swissmap
Change-Id: I3406376fb8db87306d52e665fcee1f33cf610f24
Reviewed-on: https://go-review.googlesource.com/c/go/+/621115
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
src/internal/runtime/maps/table.go