Commit ec97bc2
authored
Avoid allocation in progcaster (#622)
Previously, we'd first clone the changes to be sent downstream before
converting them to a vector. This can cause two allocations, one for
cloning the change batch, and one for the `to_vec` call (it takes self by
reference). This change adjusts it so that we convert the SmallVec into a
vector (`into_vec`).
Signed-off-by: Moritz Hoffmann <[email protected]>1 parent 291de98 commit ec97bc2
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
0 commit comments