Commit 156f2f3
http2: shrink default
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).
Backport-PR-URL: #29124
PR-URL: #29122
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>vector::reserve() allocations1 parent 10f05b6 commit 156f2f3Copy full SHA for 156f2f3
File tree
Expand file treeCollapse file tree
1 file changed
+5
-4
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
1 file changed
+5
-4
lines changedOpen diff view settings
Collapse file
+5-4Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
668 | 668 | |
669 | 669 | |
670 | 670 | |
671 | | - |
| 671 | + |
672 | 672 | |
673 | 673 | |
674 | 674 | |
| ||
1993 | 1993 | |
1994 | 1994 | |
1995 | 1995 | |
1996 | | - |
1997 | | - |
1998 | | - |
| 1996 | + |
| 1997 | + |
| 1998 | + |
| 1999 | + |
1999 | 2000 | |
2000 | 2001 | |
2001 | 2002 | |
|
0 commit comments