title: When to inline a function in Elixir
body: <p>So the question is rather simple, what exactly does inlining do and when should it be used in Elixir? </p>
  
  <p>By inlining I mean this: <code>@compile {:inline, myfun: 1}</code></p>
  
  <p>P.S. I know that there's info on the subject in the Erlang documentation <a href="http://www.erlang.org/doc/man/compile.html" rel="noreferrer">here</a> but I am still not sure I understand.</p>