trying out an unrolled variant of arrayUpdate, not faster