Re:José Valim Reveals “Project Nx” (Numerical Elixir) [audio]
by dnautics on Tuesday February 09, 2021 @03:52PM
(#26082242)
I would have suggested ets tables + entity system.
[ Parent
| on HN ]
Re:José Valim Reveals “Project Nx” (Numerical Elixir) [audio]
by bcrosby95 on Tuesday February 09, 2021 @05:14PM
(#26083112)
From my testing, the performance characteristics of ets isn't that great - data still gets copied around when you access stuff in it. I tried using it in my exploratory tests and certain worst case, player-focused actions would take around 20ms, when using a regular GenServer with a synchronization system on top would take around 5us.
To be clear, for NPCs it worked fine. But players are hoarders and in an RPG that can result in a ridiculous amount of data being attached to them.