]> Cypherpunks repositories - gostls13.git/commit
runtime/internal/maps: remove entryMask
authorKeith Randall <khr@golang.org>
Mon, 4 Nov 2024 23:52:02 +0000 (15:52 -0800)
committerGopher Robot <gobot@golang.org>
Sun, 17 Nov 2024 21:09:09 +0000 (21:09 +0000)
commit01e1e5c20438145df65a2fb79c77e3d5c3eb6831
treef9263f0f4832147260a8279d7135968c998fa92f
parenta867e5e5a6f0cc31ac9e4de8d9e25fd6be034325
runtime/internal/maps: remove entryMask

It is easily recomputed as capacity-1.

This reduces a table from 40 to 32 bytes (on 64-bit archs).
That gets us down one sizeclass.

Change-Id: Icb74fb2de50baa18ca62052c7b2fe8e6af4c8837
Reviewed-on: https://go-review.googlesource.com/c/go/+/625198
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Keith Randall <khr@golang.org>
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/group.go
src/internal/runtime/maps/table.go