go/internal/persistent
Ruslan Nigmatullin 7b04e8b59e internal/persistent: no-op deletion from map does not allocate
We can use a property that split does a dfs search for the key before
doing an actual work. This allows us to do a low-cost early return if
there is no key to delete.

Change-Id: I6ed8068945f9f2dacc356d72b18afce04ec89a3c
Reviewed-on: https://go-review.googlesource.com/c/tools/+/413659
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2022-07-01 15:20:39 +00:00
..
map.go internal/persistent: no-op deletion from map does not allocate 2022-07-01 15:20:39 +00:00
map_test.go internal/persistent: no-op deletion from map does not allocate 2022-07-01 15:20:39 +00:00