<div dir="ltr">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.<div>
<br></div><div>Perhaps there are ways to mitigate the huge-printed-dict problem. I've never taken a close look at it.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 10, 2014 at 1:29 PM, Derek Brown <span dir="ltr"><<a href="mailto:derekbrown121@gmail.com" target="_blank">derekbrown121@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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.<div>
<br>
</div><div>What factors would you consider when going with a dict or an ETS table, or perhaps something else?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Derek</div><div><br></div></font></span></div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>