Skip to content
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

Buffer single-byte writes in MultiFromOutputStream for better performance #2133

Merged
merged 4 commits into from
Jul 9, 2020

Conversation

spericas
Copy link
Member

@spericas spericas commented Jul 6, 2020

Avoid publishing single-byte arrays whenever possible. Every single-byte write is cached until either the buffer is full or a multi-byte write is requested. Multi-byte writes (arrays) are never cached and always published immediately. Manual flushes still permitted as before. See #1833 for a discussion.

spericas added 3 commits July 1, 2020 08:40
… written one at a time to avoid publishing single-byte data chunks. The logic remains the same for byte array writes. Some new tests.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
@spericas spericas self-assigned this Jul 6, 2020
@spericas spericas added the reactive Reactive streams and related components label Jul 6, 2020
@spericas spericas added this to the 2.0.2 milestone Jul 6, 2020
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
@spericas spericas merged commit 7a9a2ae into helidon-io:master Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reactive Reactive streams and related components
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants