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
|
||
---|---|---|
.. | ||
arrays | ||
buffers | ||
crypto | ||
fs | ||
http | ||
misc | ||
net | ||
tls | ||
common.js | ||
compare.js | ||
fs-write-stream-throughput.js | ||
http_bench.js | ||
http_server_lag.js | ||
http_simple_auto.js | ||
http_simple_bench.sh | ||
http_simple_cluster.js | ||
http_simple.js | ||
http_simple.rb | ||
http-flamegraph.sh | ||
http.sh | ||
idle_clients.js | ||
idle_server.js | ||
io.c | ||
plot.R | ||
report-startup-memory.js | ||
static_http_server.js |