]> Cypherpunks repositories - gostls13.git/commit
runtime: move mapaccess1 and mapassign to internal/runtime/maps
authorMichael Pratt <mpratt@google.com>
Wed, 11 Sep 2024 18:02:30 +0000 (14:02 -0400)
committerGopher Robot <gobot@golang.org>
Tue, 29 Oct 2024 20:37:41 +0000 (20:37 +0000)
commit0564fa6820097b29c54ac58ea55c2aa0609aa924
treeac940ce8a4216f3bb3db4870990392f1d6b15b4b
parent0c934b5645c3220de21a5733c60c81e46d06d4e3
runtime: move mapaccess1 and mapassign to internal/runtime/maps

This enables manual inlining Map.Get/table.getWithoutKey to create a
simple fast path with no calls.

For #54766.

Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest-swissmap
Change-Id: Ic208dd4c02c7554f312b85b5fadccaf82b23545c
Reviewed-on: https://go-review.googlesource.com/c/go/+/616455
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
src/go/build/deps_test.go
src/internal/runtime/maps/runtime_swiss.go [new file with mode: 0644]
src/runtime/alg.go
src/runtime/map_swiss.go