Skip to content

Commit

Permalink
try to inline the index build function.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachelint committed Aug 30, 2024
1 parent c6bae6e commit 12720dc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use std::{
collections::VecDeque,
fmt::{self, Debug},
iter,
ops::{Index, IndexMut},
ops::{Index, IndexMut, Shl},
};

use arrow::{
Expand Down Expand Up @@ -503,6 +503,7 @@ impl BlockedGroupIndexBuilder {
}
}

#[inline]
pub fn build(&self, packed_index: usize) -> BlockedGroupIndex {
let packed_index = packed_index as u64;
let block_id = ((packed_index & self.block_id_mask) >> 32) as u32;
Expand Down

0 comments on commit 12720dc

Please sign in to comment.