Are messages that are passed from the current process to itself deep copied? For example, if a large non-binary data structure is sent between statem transitions, will that incur a copy or is message passing ‘smart enough’ to rely on using heap pointers?
Sending to self() is specially handled, so that the message will not be copied.
2 Likes
Thank you for the reply. I’m curious, is this is documented anywhere?
Efficiency ELI5 — BEAM VM Wisdoms there has a simple [declare](javascript:
3 Likes
Thanks!