StaticArrays.jl use tuples under the hood, and you should also use them only for small arrays. Static-size arrays don’t help the compiler when the length is large, and can easily hurt — it’s like you’re trying to compile code that has 10^7 local variables. See, for example:
3 Likes