-
Notifications
You must be signed in to change notification settings - Fork 123
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
Use void promise when sending #1062
Conversation
Changes Unknown when pulling 96a56af on NettyVoidPromise into ** on master**. |
Results automatically generated by CorfuDB Benchmark Framework to assess the performance of this pull request for commit 96a56af. *** 0.0% transaction FAILURE rate for NonConflictingTx+Scan workload, 1 threads, Disk mode An interactive dashboard with Pull Request Performance Metrics for ALL cluster types and numbers of threads in run, is available at: |
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.
Less generated garbage. Good.
Just rebase.
SonarQube analysis reported 1 issue Note: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:
|
Codecov Report
@@ Coverage Diff @@
## master #1062 +/- ##
==========================================
+ Coverage 65.62% 65.79% +0.17%
==========================================
Files 214 214
Lines 9970 9970
Branches 985 985
==========================================
+ Hits 6543 6560 +17
+ Misses 3043 3034 -9
+ Partials 384 376 -8
Continue to review full report at Codecov.
|
Overview
Description: When calling write or writeAndFlush, our RPC layer isn't interested in the completion of the write. By using voidPromise(), we inform Netty that we aren't interested and resources don't need to be help pending the completion of the write.
Why should this be merged: This very minor change should reduce memory pressure and slightly improve performance because Netty no longer needs to track completions.
Checklist (Definition of Done):