# Optimized Tail Recursion

**URL:** <https://forum.elixirforum.com/t/optimized-tail-recursion/28543>\
**Category:** Questions\
**Tags:** recursion\
**Created:** [January 24, 2020, 4:14pm UTC](https://forum.elixirforum.com/t/optimized-tail-recursion/28543 "2020-01-24T16:14:47Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![sasajuric](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/sasajuric/32/991_2.png) [@sasajuric](https://forum.elixirforum.com/u/sasajuric)\
**Post date:** [January 27, 2020, 1:27pm UTC](https://forum.elixirforum.com/t/optimized-tail-recursion/28543/7 "2020-01-27T13:27:04Z")

</div>

As others have mentioned, often it doesn’t matter if TCO is applied or not. When it does, staring at the code and convincing oneself should usually suffice. That said, you can obtain stronger guarantees by taking a look at Erlang’s assembly. [Here](https://gist.github.com/sasa1977/73274c2be733b5321ace)’s a small demo I wrote up a few years ago. It seems to still work on the latest Elixir/Erlang.

---

_[View the full topic](https://forum.elixirforum.com/t/optimized-tail-recursion/28543)._
