# On arrays with inline elements (vs pointer indirection)

**URL:** <https://discourse.julialang.org/t/on-arrays-with-inline-elements-vs-pointer-indirection/88211>\
**Category:** General Usage\
**Created:** [October 4, 2022, 7:02am UTC](https://discourse.julialang.org/t/on-arrays-with-inline-elements-vs-pointer-indirection/88211 "2022-10-04T07:02:15Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Benny](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@Benny](https://discourse.julialang.org/u/Benny)\
**Post date:** [October 4, 2022, 8:03am UTC](https://discourse.julialang.org/t/on-arrays-with-inline-elements-vs-pointer-indirection/88211/8 "2022-10-04T08:03:48Z")

</div>

That is a really old thread, I think [v1.5](https://julialang.org/blog/2020/08/julia-1.5-highlights/#struct_layout_and_allocation_optimizations) (August 2020) fixed that issue. But there [are issues](https://discourse.julialang.org/t/rfc-ann-restacker-jl-a-workaround-for-the-heap-allocated-immutable-problem/35037/8) that Restack seems to still help with, just not the stated purpose of stack-allocating “immutable” structs containing heap references (quotes because many non-`mutable` `struct` are in fact semantically mutable, like views).

---

_[View the full topic](https://discourse.julialang.org/t/on-arrays-with-inline-elements-vs-pointer-indirection/88211)._
