Is my understanding of Julia correct?

Vectors are by default stored on the heap. If the vector is reasonably small (< 100 elements) then you can use Static Vectors, which are stored on the stack. The naming is odd - the heap always feels more static to me - Static Vectors are so named because the vector size is static, you can’t push onto a Static Vector.

https://docs.julialang.org/en/v1/manual/performance-tips/

1 Like