3 ms·
What's amazing is that in some engines, if the JIT can determine that you are within the bounds of the array, it can disable those checks for the duration of th
by Klathmon 10y ago
What's amazing is that in some engines, if the JIT can determine that you are within the bounds of the array, it can disable those checks for the duration of the loop.
So something like for (x = 0; x < arr.length; x++) {...} can run at pretty much the same speed as C code.