[erlang-questions] dict vs. ETS choice
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
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>
> 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?
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions