There is a warning that one should not use StaticArray for very large arrays:
Note that in the current implementation, working with large StaticArray s puts a lot of stress on the compiler, and becomes slower than Base.Array as the size increases. A very rough rule of thumb is that you should consider using a normal Array for arrays larger than 100 elements.
Why so? What is the intrinsic limitation that hurts the performance of large StaticArray?