[erlang-questions] Large array of data structures
David Hopwood
david.hopwood@REDACTED
Thu Sep 20 06:07:24 CEST 2007
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 <david.hopwood@REDACTED>
More information about the erlang-questions
mailing list