[erlang-questions] is storing complex objects in ets a good idea?
Ludovic Coquelle
lcoquelle@REDACTED
Mon Apr 16 04:26:01 CEST 2007
Hi,
In my application, I have to store a huge (but sparse) 2D matrix. I
implemented that successfully using dict-of-dict kind of structure.
I was then thinking to use a ets-of-dict structure: each line is a dict
(containing all colum values) and I store each line (a dict) as an entry of
a ets structure.
But I read in the doc introduction of ets that "In the current
implementation, every object insert and look-up operation results in one
copy of the object.". Does this means that each access (even read) to an
element of my matrix would imply a new dict copy?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20070416/7ba89f65/attachment.htm>
More information about the erlang-questions
mailing list