Hello!
In the StaticArray documentation, we read :
- The speed of small SVectors, SMatrixs and SArrays is often > 10 × faster than Base.Array
- These results improve significantly when using julia -O3 with immutable static arrays, as the extra optimization results in surprisingly good SIMD code.
- A very rough rule of thumb is that you should consider using a normal Array for arrays larger than 100 elements.
Could you please explain a bit more the reasons of the performance gain of 1. and loss of 3. ?
One reason I see is statically sized array can improve loop unrolling.
Anything else?