Nice little hack: preallocate the result array.