Unverified Commit 51ccf1b5 authored by Denys Otrishko's avatar Denys Otrishko Committed by Anna Henningsen
Browse files

http2: streamline OnStreamRead streamline memory accounting

* avoid consecutive decrement/increment session memory calls.
* only Resize the buffer when it is needed.
* flip `stream_buf_offset_` condition to the LIKELY case.

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


Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarDavid Carlier <devnexen@gmail.com>
Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent 53fb7be5
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