[erlang-questions] where it's the best way to store a very big term object shared between processes
Jesper Louis Andersen
Thu Oct 22 13:58:13 CEST 2015
A shot to try is to use a map instead. A trie should compress better on
paper, but I'm not sure the overhead in Erlang makes it competitive with
just shoving everything into a map (on 18.x), which uses a HAMT.
On Thu, Oct 22, 2015 at 1:56 PM, Jesper Louis Andersen <
> On Thu, Oct 22, 2015 at 1:19 PM, Adam Krupička <>
>> The gen_server approach would be more efficient; most efficient would be
>> storing a copy of the trie in each process (but also most memory
> Alternatively, level compress the first few levels into N processes.
>  Technically you then get a concurrent level-compressed trie.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions