Transferable objects

since you're using typed arrays you could use typed arrays, I'm not 100% sure this will be faster, it's going to depend on whether creating the array from the buffer takes less time then transferring, but depending on your data can significantly speed things up.