# Using too much memory

**URL:** <https://forum.elixirforum.com/t/using-too-much-memory/60632>\
**Category:** Questions\
**Tags:** troubleshooting, memory, advent-of-code\
**Created:** [December 29, 2023, 12:47pm UTC](https://forum.elixirforum.com/t/using-too-much-memory/60632 "2023-12-29T12:47:57Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![stevensonmt](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/stevensonmt/32/20503_2.png) [@stevensonmt](https://forum.elixirforum.com/u/stevensonmt)\
**Post date:** [December 29, 2023, 2:46pm UTC](https://forum.elixirforum.com/t/using-too-much-memory/60632/6 "2023-12-29T14:46:32Z")

</div>

You can usually get some benefit from changing `Enum` to `Stream` calls as the `Stream` functions are lazy and do not allocate all that memory up front with each call.

---

_[View the full topic](https://forum.elixirforum.com/t/using-too-much-memory/60632)._
