Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
parquet binary: pre-alloc binary buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Jul 28, 2022
1 parent 2d6ee11 commit 8a74c75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/parquet/read/deserialize/binary/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl<O: Offset> Binary<O> {
offsets.push(O::default());
Self {
offsets: Offsets(offsets),
values: vec![],
values: Vec::with_capacity(capacity * 24),
last_offset: O::default(),
}
}
Expand Down

0 comments on commit 8a74c75

Please sign in to comment.