# Julia hangs while displaying an SMatrix

**URL:** <https://discourse.julialang.org/t/julia-hangs-while-displaying-an-smatrix/45918>\
**Category:** General Usage\
**Created:** [September 1, 2020, 7:27pm UTC](https://discourse.julialang.org/t/julia-hangs-while-displaying-an-smatrix/45918 "2020-09-01T19:27:20Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [September 2, 2020, 12:34am UTC](https://discourse.julialang.org/t/julia-hangs-while-displaying-an-smatrix/45918/3 "2020-09-02T00:34:19Z")

</div>

StaticArrays aren’t a panacea that you should drop into every array computation to make them faster.

They are useful for tiny arrays (e.g. coordinate-vectors in 3d geometry) where the overhead of allocating arrays or even just looping is comparable to the cost of elementary array operations like `vector + vector`. For large arrays this overhead is relatively unimportant, especially if you do in-place operations, and the costs of StaticArrays (e.g. in compile time and instruction-cache overutilization) outweigh the benefits.

---

_[View the full topic](https://discourse.julialang.org/t/julia-hangs-while-displaying-an-smatrix/45918)._
