index | Fast 1 | Fast 3

Make fast code. Started 5/1/2024.

Referencing stuff instead of hardcoding is slower.

while (counter != -1) {
counter-=1;
}

If you refer to anything more you will slow your code including if you make a constant -1.

With that, going from 0 to array length is slower because you are refering to array length. Use from length-1 to -1, not 0 to array length. Both with only valid values should be.

X E.