mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
fda2b319dc
This commit adds an optimization to the HTTP client that makes it
possible to:
* Pack the headers and the first chunk of the request body into a
single write().
* Pack the chunk header and the chunk itself into a single write().
Because only one write() system call is issued instead of several,
the chances of data ending up in a single TCP packet are phenomenally
higher: the benchmark with `type=buf size=32` jumps from 50 req/s to
7,500 req/s, a 150-fold increase.
This commit removes the check from
|
||
---|---|---|
.. | ||
client-request-body.js | ||
cluster.js | ||
end-vs-write-end.js | ||
simple.js |