Skip to content

PR implements batching #147

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

Merged
merged 6 commits into from
Sep 17, 2019
Merged

PR implements batching #147

merged 6 commits into from
Sep 17, 2019

Conversation

karlovnv
Copy link
Contributor

@karlovnv karlovnv commented Sep 6, 2019

Take a look at issue #146

… to the commit every write to the NetworkStream used to sent on each separate tcp packet.

Added throttling for request writer to accumulate much more request to combine
 * use interlocked read of pending bytes
 * use shared dummy array
remove hard coded write buffer size
Copy link
Member

@aensidhe aensidhe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's ok to break backwards compatibility here, we're still in prerelease. So, please remove dummy :)

Also, please use var everywhere, this is preferred here. I'll work on CI this week.

var count = 0;
while ((request = GetRequest()) != null)
UInt64 length = 0;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only place where var is not recommended.

@karlovnv
Copy link
Contributor Author

@aensidhe I've finished with working on your comment, please take a look

@aensidhe aensidhe merged commit 89c91c6 into progaudi:master Sep 17, 2019
@Totktonada Totktonada mentioned this pull request Sep 10, 2021
@progaudi progaudi deleted a comment Mar 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants