-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filter mask #1327
Filter mask #1327
Conversation
@@ -89,6 +90,18 @@ impl Canonical { | |||
} | |||
} | |||
|
|||
impl Canonical { | |||
// Create an empty canonical array of the given dtype. | |||
pub fn empty(dtype: &DType) -> VortexResult<Canonical> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes #1324
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we want to use once_cell instead of nightly feature. I think to reap the most benefits out of this you want to have RowMask hold FilterMask and not construct filtermask on demand
@@ -1,3 +1,4 @@ | |||
#![feature(once_cell_try)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in other places we use the once_cell crate to get this feature without requiring one more nightly flag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah let's chat Monday, there might be some convergence. I also want to make FilterMask internally memoize the indices or slices, instead of necessarily a boolean buffer.
Add a memoized filter mask.
FLUPs:
iter()
function that returns an Enum of slices or indices based on selectivity. This forces all consumers to support both.