I have the following code:
Will it perform better if I take the declarations of the doubles and ints out of the loop? In the general sense.Code:for (i = 0; i < 1000000; i++) {
int Side1 = Result[i].X1 - 1;
int Side2 = Result[i].X2 - 1;
double Dev1 = Func(Idx, Side1);
double Dev2 = Func(Idx + 1, Side2);
.....
}