diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-08-10 23:18:13 +0200 |
---|---|---|
committer | Michaƫl Zasso <targos@protonmail.com> | 2019-08-15 09:51:52 +0200 |
commit | b2c7c51d0bfa1b2165be409f1cedb7b1d4beaddf (patch) | |
tree | 9226cc6662ec4c6c52dcadad73bacf60b09f9104 /src/node_http2.h | |
parent | b4cfa521b8b0fbe5ee5815fcac3614cc0960f7d9 (diff) | |
download | android-node-v8-b2c7c51d0bfa1b2165be409f1cedb7b1d4beaddf.tar.gz android-node-v8-b2c7c51d0bfa1b2165be409f1cedb7b1d4beaddf.tar.bz2 android-node-v8-b2c7c51d0bfa1b2165be409f1cedb7b1d4beaddf.zip |
http2: shrink default `vector::reserve()` allocations
Allocating memory upfront comes with overhead, and in particular,
`std::vector` implementations do not necessarily return memory
to the system when one might expect that (e.g. after shrinking the
vector).
PR-URL: https://github.com/nodejs/node/pull/29122
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_http2.h')
0 files changed, 0 insertions, 0 deletions