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: Iterating a slice backwards is a tiny bit faster than forwards #35140
What version of Go are you using (
When I run benchstat (20 runs) it seems to consistently reverse:
It's probably just a fluke with the numbers being so small.
Edit: Bumping it up to 5000 items gives me
I'm definitely looking at nothing here.