Let's declare `values` as a local variable using `new Array(size)` and precompute it's size.  Then using `[]` instead of `push` below for speed.  Finally, allocate the `GeometryAttribute` at the end to keep things consistent with the other geometries.