[erlang-questions] cost of passing a gen_server state between functions

Björn Gustavsson bgustavsson@REDACTED
Mon Aug 9 05:49:11 CEST 2010


On Sun, Aug 8, 2010 at 7:45 PM, Hynek Vychodil <hynek@REDACTED> wrote:
> There should not be difference because if function do_something is
> short (not in term of source code but result code) compiler will often
> inline it and then do same optimization as if work done in function.

The compiler does not do any inlining unless inlining has
been explicitly enabled (with a compiler option).

-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB


More information about the erlang-questions mailing list