[erlang-questions] where it's the best way to store a very big term object shared between processes

zxq9 zxq9@REDACTED
Thu Oct 22 12:37:01 CEST 2015


On 2015年10月22日 木曜日 11:29:17 Caragea Silviu wrote:
> 1. Use a gen server and store the btrie object on the state or process
> dictionary. - I didn't tried this

Try this.

> Doing some benchmarks I see that lookup-ing for the longest prefix (btrie:
> find_prefix_longest) in around 100 K elements by prefix it's around 2- 5 ms
> and 95% of the time is spent in the ets:lookup.

Is this "slow" or "fast" compared to what you wanted/expected?

-Craig



More information about the erlang-questions mailing list