Unverified Commit 68698469 authored by Brian White's avatar Brian White
Browse files

stream: improve Readable.read() performance

read() performance is improved most by switching from an array to
a linked list for storing buffered data. However, other changes that
also contribute include: making some hot functions inlinable, faster
read() argument checking, and misc code rearrangement to avoid
unnecessary code execution.

PR-URL: https://github.com/nodejs/node/pull/7077


Reviewed-By: default avatarCalvin Metcalf <calvin.metcalf@gmail.com>
Reviewed-By: default avatarMatteo Collina <matteo.collina@gmail.com>
parent c570182a
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment