We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
opendal::Buffer
Summary
read_range will call to_vec for opendal::Buffer which allocates new memory for each range.
read_range
to_vec
We can use opendal::Buffer inside MergeIOReadResult instead of Bytes
Bytes
#[inline] #[async_backtrace::framed] async fn read_range( op: Operator, path: &str, index: usize, start: u64, end: u64, ) -> Result<(usize, Vec<u8>)> { let chunk = op.read_with(path).range(start..end).await?; Ok((index, chunk.to_vec())) }
The text was updated successfully, but these errors were encountered:
Will take a look.
Sorry, something went wrong.
Xuanwo
No branches or pull requests
Summary
read_range
will callto_vec
foropendal::Buffer
which allocates new memory for each range.We can use
opendal::Buffer
inside MergeIOReadResult instead ofBytes
The text was updated successfully, but these errors were encountered: