def array_struct_flat(points):
    n = len(points)
return pack('f' * n, *[coord for coord in points])
points = [random() for _ in range(1000 * 2)]
What is the fastest way in python to build a c array from a list of tuples of floats?