# Is Julia Array an array or linked list?

**URL:** <https://discourse.julialang.org/t/is-julia-array-an-array-or-linked-list/34954>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [February 21, 2020, 7:42am UTC](https://discourse.julialang.org/t/is-julia-array-an-array-or-linked-list/34954 "2020-02-21T07:42:53Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [September 4, 2020, 10:22am UTC](https://discourse.julialang.org/t/is-julia-array-an-array-or-linked-list/34954/7 "2020-09-04T10:22:37Z")

</div>

> [@1d arrays vs 1-column matrices](https://discourse.julialang.org/t/1d-arrays-vs-1-column-matrices/46101/1):
>
> Does this mean that storing vectors as x(n,) rather than x(n,1) has performance benefits?

I am sorry but I don’t understand the question. Generally for `Vector{T}` you don’t get to choose a storage model for a given `T`.

> [@ismedina](#):
>
> My question then is: is the data structure behind `Vector` in Julia more like a `std::vector` or like a `std::deque` ?

`Vector{T}` is not necessarily optimal for `pushfirst!` — again, if you want a deque, use a deque. AFAIK neither is “scattered in different chunks”.

FWIW, I don’t find it helpful to think about the data structure “behind” `Vector` when programming Julia. `Array`s are _the_ data structure _per se_.

---

_[View the full topic](https://discourse.julialang.org/t/is-julia-array-an-array-or-linked-list/34954)._
