Arena is a way to allocate a bulk of memory beforehand that is not visible to garbage collector and thus 1) allows for lesser stop-the-worlds 2) require manual management
Nevalang programs are message-heavy so it would be possible to use arena to pre-allocate memory for N messages and then use it inside NewXXXMsg(...), the only question (probably?) is when to free memory
Arena is a way to allocate a bulk of memory beforehand that is not visible to garbage collector and thus 1) allows for lesser stop-the-worlds 2) require manual management
Nevalang programs are message-heavy so it would be possible to use arena to pre-allocate memory for N messages and then use it inside
NewXXXMsg(...)
, the only question (probably?) is when to free memory