Elixir processes and no shared heap memory
问题 Elixir processes have their own heap. If a process wants to share a data structure with another process, how could that be possible? One answer that comes to my mind is that the process sends a message to the other process containing the data structure. Does that mean that the entire data structure is copied from one heap to the other? And if this is true, isn't it inefficient? 回答1: TL;DR: Yes, it is inefficient. But you'll almost never notice this in practice . Welcome to the world of