[erlang-questions] [Q]: Literals in functions
Mon Jun 18 18:03:24 CEST 2007
Ladislav Lenart wrote:
> I have a generated function with no arguments which returns
> a rather complex but constant term.
> Is the compiler "smart enough" to build this structure once
> at compile time and then return it on each invocation or is
> this structure constructed anew upon each invocation?
The native code compiler is (and has been for quite some time now).
The BEAM compiler is slowly getting there...
More information about the erlang-questions