Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: We can avoid extra mapaccess in "m[k] op= r" #23661
What version of Go are you using (
There is no runtime.mapaccess1_fast in Go's asm
Added a benchmark tests go/test/bench/go1/map_test.go,
3 runs of "go/bin/go test -bench Map"
All 3 runs demonstrates minor improvement for "insert" and ~10% or "update". This is expected.