[erlang-questions] Large array of data structures

Kirill Zaborski <>
Thu Sep 20 08:51:18 CEST 2007


You've got somewhat strange arithmetic rules :)

Best regards,
Kirill.

On 9/20/07, David Hopwood <> wrote:
>
> Dmitrii 'Mamut' Dimandt wrote:
> > I've received a question over at "Erlang in Russian" forum,
> > http://erlang.dmitriid.com/forum/topic/11 that reads:
> > "
> > I need to process a huge array of structures - about 60 million of them
> > in total. Each structure looks like this:  {PID, type (atom), direct
> > (atom), index (Integer), nextind (Integer), prevind (Integer), position
> > (Integer)}. I think such a structure would take up about 50 bytes and
> > the entire array would then need 60 * 50 = 3 GB.
>
> 60 million * 50 bytes ~= 300 Mbytes. But that assumes that only one
> immutable copy of each of the 60 million structures is needed.
>
> --
> David Hopwood <>
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20070920/1b7a5aa9/attachment.html>


More information about the erlang-questions mailing list