quininer / ritsu

An experimental asynchronous runtime based on `io-uring`.
MIT License
76 stars 4 forks source link

zerocopy network #16

Open quininer opened 4 years ago

quininer commented 4 years ago

I had this idea long ago, and the poll-based API is not suitable for zerocopy network because it has similar problems as io-uring. It needs to make kernel hold buffer ownership.

I tried it with Sink, but it didn't finish in the end. I think it will be more applicable to io-uring.

Related

quininer commented 3 years ago

https://lore.kernel.org/io-uring/CAM1kxwgKGMz9UcvpFr1239kmdvmKPuzAyBEwKi_rxDog1MshRQ@mail.gmail.com/

SchrodingerZhu commented 3 years ago

any detail on the potential difficulties?

quininer commented 3 years ago

I don't think there is any difficulty, but the crate now more forcus for file io.