-
Notifications
You must be signed in to change notification settings - Fork 16
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
Conversation
… 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
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.
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; |
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.
This is the only place where var is not recommended.
@aensidhe I've finished with working on your comment, please take a look |
Take a look at issue #146