[erlang-questions] how much time required to pass messages.

Davide Marquês <>
Fri Apr 3 03:35:59 CEST 2009


Hi Vikrant! :)

Now next stuff I wonder, will the time required to pass message depends on
> what is being passed through message? guess is that it should. Because on
> process boundaries the data is copied.... copying will take time which will
> depend on the data itself.
>

I don't really know what happens while sending messages (cue for more
experienced folks ;)) but I remember recently reading (*checking mail...*)
here: http://erlang.org/pipermail/erlang-questions/2009-March/042714.html):

> Large heap binaries are always reference counted; this has nothing to
> do with the hybrid memory architecture. But it's only for binaries.
>
> What the hybrid system does is keep a separate, shared heap for all
> data that has been passed as messages. On the first send, the data is
> copied from the sender to the shared area, and from then on, it will
> be shared by all processes.
>
> So that might explain the message passing speed (on a single node).

Cheers,
Davide :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090403/d05438ff/attachment.html>


More information about the erlang-questions mailing list