a (probably) quicker way to fill array with values

Might be the same, but definitely not slower way to do it