Unverified Commit 0625627d authored by Anna Henningsen's avatar Anna Henningsen
Browse files

http2: refactor read mechanism

Refactor the read mechanism to completely avoid copying.

Instead of copying individual `DATA` frame contents into buffers,
create `ArrayBuffer` instances for all socket reads and emit
slices of those `ArrayBuffer`s to JS.

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


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent da307883
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