Dandandan opened a new issue, #622:
URL: https://github.com/apache/arrow-rs-object-store/issues/622

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   Currently, the `LocalFileSystem` uses seek followed by a read, which saves a 
syscall per request.
   
   **Describe the solution you'd like**
   
   We should be able to use `read_at` instead 
(https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html
   It is available for unix / windows:
   ```
   // Platform specific traits needed for read_at
   #[cfg(unix)]
   use std::os::unix::fs::FileExt; 
   #[cfg(windows)]
   use std::os::windows::fs::FileExt;
   
   let file = Arc::new(File::open(path)?);
   ...
   ```
   
   **Describe alternatives you've considered**
   
   **Additional context**
   


-- 
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