[erlang-questions] Gotta be an easier way...

Matthias Lang matthias@REDACTED
Wed Jun 22 19:25:27 CEST 2011


On Wednesday, June 15, Jesper Louis Andersen wrote:

> Ugh. You could wrap this up in a helper-function and then call the
> helper when you want to do the update. The inliner should make short
> work of any trouble there with call overhead.

But remember:

    Inlining is never default; it must be explicitly enabled with a
    compiler option or a -compile() attribute in the source module.

    (the 'compile' module manual)

so there isn't going to be any "short work" made unless you twiddle options.

Matt



More information about the erlang-questions mailing list