Skip to content

Commit ffadc1b

Browse files
committed
doc comment, capacity
Signed-off-by: Andrew Duffy <andrew@a10y.dev>
1 parent 4114b90 commit ffadc1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vortex-array/src/arrays/patched/compute/take.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ fn take_map<I: IntegerPType, V: NativePType>(
8989
) {
9090
let n_chunks = (offset + len).div_ceil(1024);
9191
// Build a hashmap of patch_index -> values.
92-
let mut index_map = FxHashMap::with_capacity_and_hasher(indices.len(), Default::default());
92+
let mut index_map = FxHashMap::with_capacity_and_hasher(patch_index.len(), Default::default());
9393
for chunk in 0..n_chunks {
9494
for lane in 0..n_lanes {
9595
let lane_start = lane_offsets[chunk * n_lanes + lane];

vortex-array/src/arrays/patched/vtable/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ impl ValidityChild<Patched> for Patched {
6565

6666
#[derive(Clone, prost::Message)]
6767
pub struct PatchedMetadata {
68-
/// Offset within the first chunk of `inner` where data begins.
68+
/// An offset into the first chunk's patches that should be considered in-view.
6969
///
7070
/// This may become nonzero after slicing.
7171
#[prost(uint32, tag = "1")]

0 commit comments

Comments
 (0)