# Array of structures vs. Structures of arrays

**URL:** <https://discourse.julialang.org/t/array-of-structures-vs-structures-of-arrays/56936>\
**Category:** GPU\
**Tags:** question\
**Created:** [March 11, 2021, 9:33am UTC](https://discourse.julialang.org/t/array-of-structures-vs-structures-of-arrays/56936 "2021-03-11T09:33:12Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![LaurentPlagne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laurentplagne/32/10103_2.png) [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Post date:** [March 11, 2021, 2:16pm UTC](https://discourse.julialang.org/t/array-of-structures-vs-structures-of-arrays/56936/8 "2021-03-11T14:16:25Z")

</div>

I think that @maleadt can answer more precisely but I think that it wrote this here:

> [@Thread local storage is not implemented](https://discourse.julialang.org/t/thread-local-storage-is-not-implemented/46656/5):
>
> StaticArrays are implemented as structs containing tuples, so it’ll be using registers and not PTX’s local memory. You can inspect generated code using @device\_code\_ptx.

---

_[View the full topic](https://discourse.julialang.org/t/array-of-structures-vs-structures-of-arrays/56936)._
