[erlang-questions] lists, binaries or something else?

CGS cgsmcmlxxv@REDACTED
Fri Jul 13 00:20:16 CEST 2012


Nice idea about splitting in storage and working processes. Thanks a lot to
both of you, Jay and Erik, for suggestion.

CGS





On Thu, Jul 12, 2012 at 8:34 PM, Jay Nelson <jay@REDACTED> wrote:

> Processes are private memory spaces. Depending on how you
> construct the strings, you could spawn a process to create the
> string convert it to binary and then send the binary as a message.
> When the process ends, its entire memory space will be reclaimed.
>
> The binary will live on the shared binary heap so the sending
> won't be expensive. The question is the source of the data for
> the string and whether that can be isolated after the process
> is spawned. Passing a large data structure on the spawn
> arguments causes a copy which might blow your memory.
>
> jay
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120713/a28bf0cf/attachment.htm>


More information about the erlang-questions mailing list