This makes the code much simpler, and the extra memory use is tiny -- a vanilla 1000 element array is only 4000 bytes larger than a Uint32Array of the same size.
This makes the code much simpler, and the extra memory use is tiny -- a vanilla 1000 element array is only 4000 bytes larger than a Uint32Array of the same size.