aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/binary
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2024-10-04 15:20:48 -0400
committerGopher Robot <gobot@golang.org>2024-10-28 20:34:48 +0000
commitefa43c57b109582d602eeb9b5fb690d38e4cf9aa (patch)
tree22f4fda23d6334c119d565b7382d0acb2c284eed /src/encoding/binary
parent7de87ebd59f7667f6b27d635a380ea0d9d3dabf5 (diff)
downloadgo-efa43c57b109582d602eeb9b5fb690d38e4cf9aa.tar.xz
internal/runtime/maps: reuse deleted slots on insert
While walking the probe sequence, Put keeps track of the first deleted slot it encountered. If it reaches the end of the probe sequence without finding a match, then it will prefer to use the deleted slot rather than a new empty slot. For #54766. Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest-swissmap Change-Id: I19356ef6780176506f57b42990ac15dc426f1b14 Reviewed-on: https://go-review.googlesource.com/c/go/+/618016 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Keith Randall <khr@google.com> Auto-Submit: Michael Pratt <mpratt@google.com> Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/encoding/binary')
0 files changed, 0 insertions, 0 deletions