Optimizing Erlang

Per Gustafsson <>
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