feat(clients): NetworkReceive memory optimization#3098
feat(clients): NetworkReceive memory optimization#3098surajdarade wants to merge 5 commits intoAutoMQ:mainfrom
Conversation
…er pool and tiered bucket allocation for commonpayload sizes to reduce GC overhead and memory fragmentation.
… proper resource cleanup in close().
|
@surajdarade Thank you for your PR. The expectation of the ISSUE is to add a new MemoryPool implementation to optimize the memory usage of NetworkReceive. |
|
Thanks for redirecting. Will refactor as per the intended requirement now. |
…ted via MemoryPool, returning head in allocation failure preventing payload read without memory
|
Have a look on this proposed optimization, let me know what can we improved, what revamp is needed. |
Hi, the requirement is to implement a new MemoryPool to optimize memory usage. Currently, SocketServer.memoryPool uses MemoryPool.NONE by default. |
|
This PR is being marked as stale since it has not had any activity in 90 days. If you would like to keep this PR alive, please ask a committer for review. If the PR has merge conflicts, please update it with the latest from trunk (or appropriate release branch) If this PR is no longer valid or desired, please feel free to close it. If no activity occurs in the next 30 days, it will be automatically closed. |
Fixes #2962 [ Enhancement/Optimization ]
Clean MemoryPool implementation at NetworkReceive: