alamb commented on issue #6709:
URL: https://github.com/apache/arrow-rs/issues/6709#issuecomment-2591261713

   This would largely defeat the purpose of using mmap, as it will perform a 
copy.
   
   
   This code compiles and I don't think it makes a copy 🤔 Maybe I am missing 
something
   
   ```rust
       let file = std::fs::File::open("/tmp/foo.txt").unwrap();
       let mmap = unsafe { Mmap::map(&file).unwrap() };
       let mut cursor = std::io::Cursor::new(&mmap[..]);
       let mut reader = arrow::ipc::reader::FileReader::try_new(&mut cursor, 
None).unwrap();
       for b in reader.next().unwrap() {
           println!("{:?}", b);
       }
   ```


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