I have a question about looping through an array, in Processing but also programming in general.
Lets say I have 2 arrays with large amount of data. I need to loop through them, something like this:
for (int i = 0; i < myArray1.length; i++) {
for (int j = 0; j < myArray2.length; j++) {
...
}
}
If I'm correct int i & j are recreated every time this code runs, and the test expression (array length) is collected every iteration. So instead, would this be faster?