# What's behind the scenes of the view (...) function?

**URL:** <https://discourse.julialang.org/t/whats-behind-the-scenes-of-the-view-function/88780>\
**Category:** General Usage\
**Tags:** array, memory-allocation, views\
**Created:** [October 15, 2022, 2:36pm UTC](https://discourse.julialang.org/t/whats-behind-the-scenes-of-the-view-function/88780 "2022-10-15T14:36:15Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [October 15, 2022, 7:31pm UTC](https://discourse.julialang.org/t/whats-behind-the-scenes-of-the-view-function/88780/4 "2022-10-15T19:31:07Z")

</div>

> [@rocco\_sprmnt21](#):
>
> If the explanation isn’t too laborious, in this simple case, I’d like to know what `view()` does differently than `getindex()` to be faster and not allocate.

Read the manual on what a view is: [Arrays · The Julia Language](https://docs.julialang.org/en/v1/base/arrays/#Views-(SubArrays-and-other-view-types))

See also [Could you explain what are views?](https://discourse.julialang.org/t/could-you-explain-what-are-views/17535)

---

_[View the full topic](https://discourse.julialang.org/t/whats-behind-the-scenes-of-the-view-function/88780)._
