We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f656ff commit 345d392Copy full SHA for 345d392
arrow-row/src/run.rs
@@ -134,7 +134,8 @@ pub unsafe fn decode<R: RunEndIndexType>(
134
run_ends.push(R::Native::usize_as(idx));
135
}
136
unique_row_indices.push(decoded_values.len());
137
- decoded_values.push(decoded_data.clone());
+ let capacity = decoded_data.capacity();
138
+ decoded_values.push(std::mem::replace(&mut decoded_data, Vec::with_capacity(capacity)));
139
140
141
// Add the final run end
0 commit comments