Ulf Wiger (AL/EAB)
Fri Mar 3 16:24:59 CET 2006
Of course. My bad. I read the question too quickly.
My reply assumed message passing only - not passing
arguments to a function.
> -----Original Message-----
> [mailto:] On Behalf Of Per Gustafsson
> Sent: den 3 mars 2006 15:50
> Subject: Re: Optimizing Erlang
> >> 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
> When a term is sent to another process however, everything
> but large binaries is copied.
More information about the erlang-questions