{{ message }}
Repository navigation
Commit 96d4c23
http: fast-forward teardown of unread messages
When a response finishes and the incoming message was fully received
but never read, _dump() no longer goes through resume(): read(0) at
EOF schedules the 'end' emission directly, skipping the resume_ tick,
the 'resume' emit and the flow() machinery.
Reduces the per-request nextTick count of a hello-world HTTP server
from 7 to 6 and CPU per request by ~4%.
Signed-off-by: Matteo Collina <hello@matteocollina.com>
PR-URL: #65732
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tim Perry <pimterry@gmail.com>1 parent d535859 commit 96d4c23
1 file changed
Lines changed: 15 additions & 1 deletion

0 commit comments