# About garbage collection

**URL:** <https://discourse.julialang.org/t/about-garbage-collection/54845>\
**Category:** General Usage\
**Tags:** question\
**Created:** [February 8, 2021, 2:24pm UTC](https://discourse.julialang.org/t/about-garbage-collection/54845 "2021-02-08T14:24:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ReneganRonin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/reneganronin/32/21738_2.png) [@ReneganRonin](https://discourse.julialang.org/u/ReneganRonin)\
**Post date:** [February 8, 2021, 2:24pm UTC](https://discourse.julialang.org/t/about-garbage-collection/54845/1 "2021-02-08T14:24:28Z")

</div>

How does garbage collection work in julia?  
Does it affect high performance scientific computing?  
As someone with no computer science background, and also new to programming, should i worry about it in the future?  
Also i am new to discourse so I apologize if i did something wrong

---

<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:** [February 8, 2021, 2:45pm UTC](https://discourse.julialang.org/t/about-garbage-collection/54845/2 "2021-02-08T14:45:40Z")

</div>

> [@ReneganRonin](#):
>
> How does garbage collection work in julia?

Pretty well.

> [@ReneganRonin](#):
>
> Does it affect high performance scientific computing?

Generally not. With a bit of effort you can make your code allocate very little, usually.

> [@ReneganRonin](#):
>
> As someone with no computer science background, and also new to programming, should i worry about it in the future?

No. For a lot of use cases GC works well. In case it doesn’t, Julia has the tools to investigate allocations and you can modify your code in the hotspots as needed.

---

<div class="post-metadata">

**Author:** ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)\
**Post date:** [February 8, 2021, 2:57pm UTC](https://discourse.julialang.org/t/about-garbage-collection/54845/3 "2021-02-08T14:57:16Z")

</div>

> [@ReneganRonin](#):
>
> Also i am new to discourse so I apologize if i did something wrong

Definitely nothing wrong! But your question is a very general one, so it may be hard to give you a sufficiently helpful answer.

As a newcomer to programming, you shouldn’t have to worry about the details of garbage collection yet. The whole point of systems like garbage collection is to make it easier for you to write correct code without having to think about the details of managing memory directly. Eventually you’ll need at least some understanding of how the GC affects high-performance code, but you definitely don’t need to start there.

---

<div class="post-metadata">

**Author:** ![ReneganRonin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/reneganronin/32/21738_2.png) [@ReneganRonin](https://discourse.julialang.org/u/ReneganRonin)\
**Post date:** [February 8, 2021, 3:11pm UTC](https://discourse.julialang.org/t/about-garbage-collection/54845/4 "2021-02-08T15:11:03Z")

</div>

thanks for your response. :3
