Optimizing Erlang

Ulf Wiger (AL/EAB) ulf.wiger@REDACTED
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.

/U 

> -----Original Message-----
> From: owner-erlang-questions@REDACTED 
> [mailto:owner-erlang-questions@REDACTED] On Behalf Of Per Gustafsson
> Sent: den 3 mars 2006 15:50
> To: erlang-questions@REDACTED
> 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 
> 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