We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9f66a1 commit 65c9b89Copy full SHA for 65c9b89
1 file changed
arrow-ipc/src/reader.rs
@@ -146,7 +146,7 @@ impl RecordBatchDecoder<'_> {
146
let null_buffer = self.next_buffer()?;
147
148
// read the arrays for each field
149
- let mut struct_arrays = vec![];
+ let mut struct_arrays = Vec::with_capacity(struct_fields.len());
150
// TODO investigate whether just knowing the number of buffers could
151
// still work
152
for struct_field in struct_fields {
0 commit comments