Optimizing Erlang

Per Gustafsson per.gustafsson@REDACTED
Fri Mar 3 15:50:20 CET 2006


 >>
 >> 3.	When passing large lists/binary/etc to a function, are
 >> they going as references or values (a full copy of data)?

> 3. Large binaries are passed by reference. Lists are always copied.
>  

To clarify, for function calls arguments are always passed by reference. 
When a term is sent to another process however, everything but large 
binaries is copied.

Per




More information about the erlang-questions mailing list