tustvold commented on code in PR #4677:
URL: https://github.com/apache/arrow-rs/pull/4677#discussion_r1291216153


##########
object_store/src/local.rs:
##########
@@ -863,7 +866,56 @@ impl AsyncWrite for LocalUpload {
     }
 }
 
-pub(crate) fn read_range(file: &mut File, path: &PathBuf, range: Range<usize>) 
-> Result<Bytes> {
+pub(crate) fn chunked_stream(
+    mut file: File,
+    path: PathBuf,
+    range: Range<usize>,
+    chunk_size: usize,
+) -> BoxStream<'static, Result<Bytes, super::Error>> {
+    futures::stream::once(async move {

Review Comment:
   Yeah, at least currently tokio::fs has pretty terrible performance 
charateristics, I would not recommend using it for anything really. Perhaps at 
some point io_uring will get sufficiently stable, but that will be Linux 
specific



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to