Commit 03ca0aa
authored
perf: Tweak vec capacity in
## Which issue does this PR close?
N/A
## Rationale for this change
We can easily specify the correct capacity for the result vector in
`project_statistics`. Profiling shows that this reduces total allocated
bytes for planning TPC-H Q13 by ~1.7%, or ~17 kB out of ~1.03MB of
allocations.
Probably too small to show up in a measurement of elapsed duration, but
doesn't hurt.
## What changes are included in this PR?
* Specify vector capacity in `project_statistics`
## Are these changes tested?
Yes.
## Are there any user-facing changes?
No.project_statistics (#21734)1 parent 675881d commit 03ca0aa
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
656 | 656 | | |
657 | 657 | | |
658 | 658 | | |
659 | | - | |
| 659 | + | |
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
| |||
0 commit comments