Commit 2eabb59
authored
perf: Use Vec::with_capacity in cast_to_run_end_encoded (#8726)
Related to #8707.
Inspired by
#8716 (comment), a
follow up improvement to #8589: We already know what the length of the
two vectors will be, so we can create them with that capacity.1 parent 1b18582 commit 2eabb59
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
| |||
0 commit comments