NVIDIA / stdexec

`std::execution`, the proposed C++ framework for asynchronous and parallel programming.
Apache License 2.0
1.55k stars 159 forks source link

io_uring reading files #1062

Open mfbalin opened 1 year ago

mfbalin commented 1 year ago

The included io_uring example doesn't show how to read files or other operations supported by io_uring.

I would like to implement a random access file reader class that will handle batches of read requests in an async manner. Need directions to move forward. The read requests will be a range of begin and end iterators into the file in terms of bytes. The destination will be a range of pointers. I would like to avoid any extra copies as much as possible.

mfbalin commented 1 year ago

@maikel Have any pointers for me to move forward?

maikel commented 1 year ago

Does this help https://github.com/maikel/senders-io/blob/main/source/sio/io_uring/file_handle.hpp