-
Notifications
You must be signed in to change notification settings - Fork 508
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
Fixed max buffer limitation #1639
Conversation
|
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 looks fine to me but I'll let Mark take a look as well - have you noticed a performance difference?
@Paultagoras I think when buffer is big is may fit whole data fast but if more space is needed than it will be costly to allocate another buffer. Smaller buffer have another side effect - they require more IO calls to push data to OS level. So may be a good recommendation here is to use buffer size > estimated size of dataset to avoid expensive allocations. |
What sort of memory footprint did that have? I assume the logic of a smaller buffer is that it doesn't keep so much stored in RAM. |
As I see it - if we have smaller buffers - we have to block more frequently to copy them to TCP layer. I'm currently talking about current implementation. But I have not tested it in this way. |
Summary
Max buffer size can now be overridden by user
Checklist
Delete items not relevant to your PR: