New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/compile: poor performance when accessing slices for numerical work (multiplying vectors) #6206
Labels
Milestone
Comments
This isn't really vector multiplication. It's a test case I wrote to see if slice access is slow after noticing a performance difference between Java and Go when doing vector multiplication. Part of the problem is that the var num declared outside of the outer loop isn't stored in a register. That's why the var n declaration inside the outer loop gives more than a factor of 2 speed up. Even with that optimization there is still a significant performance hit. |
rsc
changed the title
cmd/6g: Poor performance when accessing slices for numerical work (multiplying vectors)
cmd/compile: poor performance when accessing slices for numerical work (multiplying vectors)
Jun 8, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
by dean.w.schulze:
The text was updated successfully, but these errors were encountered: