Join GitHub today
GitHub is home to over 36 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 (
changed the title
cmd/compile: We can easily avoid extra mapaccess1 in "m[i] op= r"
Feb 2, 2018
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.