Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: unnecessary bounds check in a loop passed as a closure #39756
What version of Go are you using (
It's not just the bounds check, it is also reloading the backing store pointer every time.
You can fix this by doing