Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Streams2 + net + http: writev #5246

Closed
wants to merge 4 commits into from
Closed

Conversation

indutny
Copy link
Member

@indutny indutny commented Apr 8, 2013

  1. Introduce ._writev function and coalesce stream mode.
  2. Switch net.Sockets to this mode
  3. Improve http to benefit from this mode.

/cc @isaacs @bnoordhuis

@indutny
Copy link
Member Author

indutny commented Apr 8, 2013

It seems that test-http-curl-chunk-problem.js is rarely failing, investigating problem.

uv_buf_t* buf = buf_;

// Allocate buffers if on-stack is not enough
if (count > 16)
Copy link
Member

Choose a reason for hiding this comment

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

count > ARRAY_SIZE(buf_)

@bnoordhuis
Copy link
Member

What do the benchmark numbers look like before and after? A benchmark that measures writev performance would be a good thing, by the way.

@indutny indutny mentioned this pull request Apr 8, 2013
@indutny
Copy link
Member Author

indutny commented Apr 8, 2013

Closing this PR in a favor of #5257

@indutny indutny closed this Apr 8, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants