Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Customizable estimation for messages written outside the EventLoop
Motivation: Estimation algorithm currently used for WriteTasks is complicated and wrong. Additionally, some code relies on outbound buffer size incremented only on actual writes to the outbound buffer. Modifications: - Throw away the old estimator and replace with a simple algorithm that uses the client-provided estimator along with a statically configured WriteTask overhead (io.netty.transport.writeTaskSizeOverhead system property with the default value of 48 bytes) - Add a io.netty.transport.estimateSizeOnSubmit boolean system property allowing the clients to disable the message estimation outside the event loop Result: Task estimation is user controllable and produces better results by default
- Loading branch information
1 parent
6177738
commit d2ddb52
Showing
1 changed file
with
23 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters