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

Pre-build the complete buffer of requests for pipelining #36

Closed
wants to merge 3 commits into from

Conversation

jrudolph
Copy link

There seems to be a limit of packages (framing overhead) and system calls which one can successfully send. This patch tries to optimize the number of packages send by pre-building the complete batch of pipelined requests into one big buffer.

Also, the write handling is improved so that successful writing doesn't rely any more on the send buffer size (and network condition). Instead, the request buffer is written in chunks when the network allows it.

wg and others added 3 commits May 29, 2013 10:13
There seems to be a limit of packages (framing overhead) and system calls which
one can successfully send. This patch tries to optimize the number of packages
send by pre-building the complete batch of pipelined requests into one big
buffer.

Also, the write handling is improved so that successful writing doesn't
rely any more on the send buffer size (and network condition). Instead, the
request buffer is written in chunks when the network allows it.
@wg
Copy link
Owner

wg commented Jun 21, 2013

Thanks @jrudolph, I like it! Building one big buffer for the whole pipeline should be much more efficient than making many write() calls. I've implemented something similar to this, but separated into different commits to make merging between the various branches easier.

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