]> Cypherpunks repositories - gostls13.git/commit
internal/runtime/maps: speed up Clear
authorKeith Randall <khr@golang.org>
Wed, 20 Aug 2025 23:53:09 +0000 (16:53 -0700)
committerKeith Randall <khr@golang.org>
Wed, 10 Sep 2025 22:06:08 +0000 (15:06 -0700)
commit8098b99547e2bb802c976a424e486ba94d3222a8
treeb6224c0206bdc04db235a1f2239fe5a86877e0c0
parentfe5420b054a091f59f5adbd78f4716d20c7f484c
internal/runtime/maps: speed up Clear

We don't need to know the actual full slots, just whether there
are any or not.

The test for any full slots is simpler on amd64. We don't have to
use PMOVMSKB and do the intreg->floatreg transfer.

Fixes #75097

Change-Id: Iace1c100618d7fc2ac5ddd5fe9e8fe5c9595243f
Reviewed-on: https://go-review.googlesource.com/c/go/+/697875
Reviewed-by: Youlin Feng <fengyoulin@live.com>
Auto-Submit: Keith Randall <khr@google.com>
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/internal/runtime/maps/group.go
src/internal/runtime/maps/table.go