]> Cypherpunks repositories - gostls13.git/commit
internal/runtime/maps: clean up put slot calls
authorkhr@golang.org <khr@golang.org>
Thu, 31 Oct 2024 17:42:23 +0000 (10:42 -0700)
committerKeith Randall <khr@golang.org>
Fri, 1 Nov 2024 20:11:10 +0000 (20:11 +0000)
commit47cd14f268722882cc954a46277a80eb95821aa7
tree0a604624ec01e247b30d64aa5686bb204f30637e
parent378c48e6c7c9f62c80b4d627302fda978ece2a1d
internal/runtime/maps: clean up put slot calls

Use matchEmptyOrDeleted instead of matchEmpty.
Streamline the code a bit.
TODO: replicate in all the _fast files.
Change-Id: I4df16a13a19df3aaae0c42e0c12f20552f08ead6
Reviewed-on: https://go-review.googlesource.com/c/go/+/624055
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/internal/runtime/maps/runtime_fast32_swiss.go
src/internal/runtime/maps/runtime_fast64_swiss.go
src/internal/runtime/maps/runtime_faststr_swiss.go
src/internal/runtime/maps/table.go