# What exactly is "allocation" in Julia?

**URL:** <https://discourse.julialang.org/t/what-exactly-is-allocation-in-julia/89579>\
**Category:** Performance\
**Tags:** question, memory-allocation\
**Created:** [October 31, 2022, 8:06pm UTC](https://discourse.julialang.org/t/what-exactly-is-allocation-in-julia/89579 "2022-10-31T20:06:39Z")\
**Posts on this page:** 1\
**Showing post:** 39

<div class="post-metadata">

**Author:** ![mthelm85](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mthelm85/32/224164_2.png) [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Post date:** [November 3, 2022, 12:51am UTC](https://discourse.julialang.org/t/what-exactly-is-allocation-in-julia/89579/39 "2022-11-03T00:51:21Z")

</div>

This might be helpful:

> [@A nice explanation of memory stack vs. heap](https://discourse.julialang.org/t/a-nice-explanation-of-memory-stack-vs-heap/53915):
>
> This is from [the Rust Book](https://doc.rust-lang.org/book/ch04-01-what-is-ownership.html#the-stack-and-the-heap): Both the stack and the heap are parts of memory that are available to your code to use at runtime, but they are structured in different ways. The stack stores values in the order it gets them and removes the values in the opposite order. This is referred to as last in, first out . Think of a stack of plates: when you add more plates, you put them on top of the pile, and when you need a plate, you take one off the top. Adding or removing plates from the middle or bot…

---

_[View the full topic](https://discourse.julialang.org/t/what-exactly-is-allocation-in-julia/89579)._
