You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on #915 in #949 it became clear that memory arena might be a good fit for this design. There're two reasons for this:
Neva components are called from Go code like sub-programs rather than co-routines (using call/return semantics instead of send/receive)
For each call we spawn neva runtime instance with all the runtime function goroutines needed
These are current design constraints that allow to make it work easily. However it comes with the cost and while there was no benchmarks it wouldn't be surprise if that generates a load for garbage collector.
The Solution Proposed
Solution could be memory arena. We pre-allocate memory before call Neva component and then free it, after it finishes.
Of course it's not obvious how much memory to pre-allocate but that's something to discuss.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
The Problem
While working on #915 in #949 it became clear that memory arena might be a good fit for this design. There're two reasons for this:
These are current design constraints that allow to make it work easily. However it comes with the cost and while there was no benchmarks it wouldn't be surprise if that generates a load for garbage collector.
The Solution Proposed
Solution could be memory arena. We pre-allocate memory before call Neva component and then free it, after it finishes.
Of course it's not obvious how much memory to pre-allocate but that's something to discuss.
Beta Was this translation helpful? Give feedback.
All reactions