]> Cypherpunks repositories - gostls13.git/commit
internal/runtime/maps: make clear also erase tombstones
authorkhr@golang.org <khr@golang.org>
Sat, 30 Nov 2024 03:13:36 +0000 (19:13 -0800)
committerGopher Robot <gobot@golang.org>
Wed, 7 May 2025 19:44:00 +0000 (12:44 -0700)
commit4e63ae46e097062b72424b2ac1da6e7dac33064b
tree54904f4406843265f423a9da26db38ba7e26f09c
parent94c4cdc94869454eb25c725c5f4a92ff305ffa3b
internal/runtime/maps: make clear also erase tombstones

This will make future uses of the map faster because the probe
sequences will likely be shorter.

Change-Id: If10f3af49a5feaff7d1b82337bbbfb93bcd9dcb5
Reviewed-on: https://go-review.googlesource.com/c/go/+/633076
Auto-Submit: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Keith Randall <khr@google.com>
src/cmd/compile/internal/reflectdata/map_swiss.go
src/internal/runtime/maps/map.go
src/internal/runtime/maps/table.go