I have always wondered if, in general, declaring a throw-away variable before a loop, as opposed to repeatedly inside the loop, makes any (performance) difference? A (q
Tried the same thing in Go, and compared the compiler output using go tool compile -S with go 1.9.4
go tool compile -S
Zero difference, as per the assembler output.