Re:Two years of Elixir at The Outline
by zinclozenge on Monday October 29, 2018 @10:29AM
(#18327788)
Specifically for the suffix tree in memory, you would store the tree as a constant in a module and dynamically recompile at runtime. By doing so it puts the tree in a special heap that can be read by all processes and doesn't get copied around. There's a library called 'mochiglobal' that does that for you. Discord ported it to Elixir and called it 'fastglobal' (although their implementation can be sped up by about ~25%).
[ Parent
| on HN ]
There are no comments on this comment yet.