# <span class='text-muted'>050.</span> Store data as an array of derived types or a derived type with array components?

<span style='font-size: small;' class='text-muted'>topic: {ref}`derived-types`</span>

```{note}
This tip is a draft[^draft].

[^draft]: From the perspective of FortranTip Browser, "draft" means that
  it hasn't been edited for formatting,
  hasn't had corresponding Fortran programs added,
  the text content hasn't been enhanced, etc.
  Draft texts are extracted from the corresponding Tweet using the Twitter API.
```

Whether to store data as an array of derived types or a derived type with array components also depends on how the data will typically be accessed.


---

<blockquote class="twitter-tweet"><p lang="en" dir="ltr">Whether to store data as an array of derived types or a derived type with array components also depends on how the data will typically be accessed.<a href="https://t.co/UUqiYkaLO7">pic.twitter.com/UUqiYkaLO7</a></p>&mdash; FortranTip (@fortrantip) <a href="https://twitter.com/fortrantip/status/1475133178763427848?ref_src=twsrc%5Etfw">December 26, 2021</a></blockquote><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>