ŹR
Size: a a a
ŹR
DS
DR
DT
DS
DS
ŹR
ŹR
DR
Applying an exported function (Mod:Name(), apply(Mod, Name, [])) is about twice as expensive as calling a fun or about six times as expensive as calling a local function.
DR
It no longer matters (from a performance point of view) whether you write:
Module:Function(Arg1, Arg2)
or:
apply(Module, Function, [Arg1,Arg2])
ŹR
DT
DR
The following code is slightly slower because the shape of the list of arguments is unknown at compile time.
apply(Module, Function, Arguments)
DR
DT
K
ŹR
It no longer matters (from a performance point of view) whether you write:
Module:Function(Arg1, Arg2)
or:
apply(Module, Function, [Arg1,Arg2])
def call(:foo), do: Bar.foo
def call(:bar), do: Bar.bar
def call(fname), do: apply(Bar, fname)
DT
K
DR