[erlang-questions] dict vs. ETS choice

Daniel Goertzen daniel.goertzen@REDACTED
Fri Jul 11 14:26:23 CEST 2014


Large dicts complicate debugging because the whole thing gets
printed/logged when you have a crash or want to do some tracing.  For this
reason alone I would lean towards ETS instead of dict when the use-case
allows it.

Perhaps there are ways to mitigate the huge-printed-dict problem.  I've
never taken a close look at it.


On Thu, Jul 10, 2014 at 1:29 PM, Derek Brown <derekbrown121@REDACTED>
wrote:

> Let's say you want to store on the order of tens of thousands key/value
> pairs, with integer keys and proplist values (less than 10 simple key/value
> pairs per proplist). Read-heavy with few writes.
>
> What factors would you consider when going with a dict or an ETS table, or
> perhaps something else?
>
> Derek
>
>
> _______________________________________________
> 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/20140711/882e63f1/attachment.htm>


More information about the erlang-questions mailing list