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
As far as I can tell, there's no way to reuse messages that have been successfully sent/received. Is that correct?
Basically, I am concerned about memory fragmentation in our process from the constant allocation/freeing of memory for messages. We have been burned by this before, and so before adopting NNG I have been looking into the way it works and fragmentation is a possible concern.
Another way to handle this would be to supply a custom allocator which pools memory buffers (as our messages are of consistent sizes). However, that is not currently supported (at least in version 1.11 which is available via Vcpkg). I could make a patch that allows substitution of the allocation functions, but I'm wondering if anyone has any other suggestions.
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.
-
As far as I can tell, there's no way to reuse messages that have been successfully sent/received. Is that correct?
Basically, I am concerned about memory fragmentation in our process from the constant allocation/freeing of memory for messages. We have been burned by this before, and so before adopting NNG I have been looking into the way it works and fragmentation is a possible concern.
Another way to handle this would be to supply a custom allocator which pools memory buffers (as our messages are of consistent sizes). However, that is not currently supported (at least in version 1.11 which is available via Vcpkg). I could make a patch that allows substitution of the allocation functions, but I'm wondering if anyone has any other suggestions.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions