mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
d62cf59dc1
The benefits of the hot-path optimization below start to fall off when the buffer size gets up near 128KB, because the cost of the copy is more than the cost of the extra write() call. Switch to the write/end method at that point. Heuristics and magic numbers are awful, but slow http responses are worse. Fix #4975 |
||
---|---|---|
.. | ||
cluster.js | ||
end-vs-write-end.js | ||
simple.js |