-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf: use msgio pooled buffers for received msgs #500
Conversation
@vyzo, any interest in this? |
ah sorry, didnt notice it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this, it looks like it's going to help quite a bit with memory consumption.
Lets discuss a bit the rpc thingie, and then I am happy to merge.
@Wondertan ping |
Also, lets do send buffers while at it; it can be a separate pr. |
nw, someone has to make FVM sound 😉 |
@vyzo, done
👌🏻 |
ca3e349
to
137a1ab
Compare
Also, updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to release the buffer in handleEOF.
@Wondertan ping -- lets move this forward? |
@vyzo, I am currently on the two-week team onsite, and it's almost the end. Going to bring this over the finish line right after. The are some unanswered questions in the thread, IIRC |
yeah, whenever you can. I think reverting the eof change for now, or releasing the buffer, will do for merge. But lets create a follow up issue to discuss the general handling and come up with a good solution that can later be speced for other impls to follow. |
@vyzo, so I reverted the EOF change and started making an issue for it. Now it's only the reading side with pooled buffers. I can also try to squeeze in the write today if we want to. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for now, lets merge and do follow up prs.
* perf: use msgio pooled buffers for received msgs (libp2p#500) * perf: use pooled buffers for message writes (libp2p#507) * improve handling of dead peers (libp2p#508) * chore: ignore signing keys during WithLocalPublication publishing (libp2p#497) * adds app specific rpc handler Co-authored-by: Hlib Kanunnikov <[email protected]> Co-authored-by: Viacheslav <[email protected]>
The issue mentions only receiving buffers, so this PR only changes those. However, there might be value in changing sending buffers as well. Happy to update this in a subsequent commit if needed.
Closes #350