Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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%).


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: