[erlang-questions] where it's the best way to store a very big term object shared between processes
Thu Oct 22 15:18:26 CEST 2015
If the data is constant once the table is built, and the entries are big so
you don't want to copy them out from an ets table or even avoid passing
them between processes (if you want to distribute the table to a large
number of processes), you could generate a module, e.g. using Merl, with a
lookup function that does what the trie lookup would do. It might take some
effort but the speedup could be huge.
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.
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions