Skip to content

LazyBuffers: filter buffer handles#7071

Draft
gatesn wants to merge 1 commit intodevelopfrom
ngates/lazy-buffers/slicing
Draft

LazyBuffers: filter buffer handles#7071
gatesn wants to merge 1 commit intodevelopfrom
ngates/lazy-buffers/slicing

Conversation

@gatesn
Copy link
Contributor

@gatesn gatesn commented Mar 19, 2026

Summary

Closes: #000

Testing

Signed-off-by: Nicholas Gates <nick@nickgates.com>
Copy link
Contributor Author

gatesn commented Mar 19, 2026

Comment on lines +93 to +99
/// Unlike [`slice`](DeviceBuffer::slice), this method allocates new memory and copies the
/// selected ranges into a contiguous buffer.
///
/// # Errors
///
/// Returns an error if the device cannot allocate memory or copy the data.
fn filter(&self, ranges: &[Range<usize>]) -> VortexResult<Arc<dyn DeviceBuffer>>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in bytes? This translation might be hard?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we might need a few ways of slicing? Not sure...

@gatesn gatesn changed the title Add slicing to BufferHandle LazyBuffers: slicing Mar 20, 2026
@gatesn gatesn changed the title LazyBuffers: slicing LazyBuffers: filter buffer handles Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants