2 unstable releases
0.2.0-pre1 | Feb 26, 2025 |
---|---|
0.1.0 | Mar 31, 2024 |
#112 in Science
151 downloads per month
170KB
2K
SLoC
io-uring-epoll
When your io_uring meets your epoll 🥰
Save system calls by setting file handle readiness checks especially in busy eventloops that have a lot of on/off readiness activity via io_uring interface.
Please note that epoll is different to reqular poll and is only available on Linux kernel.
Epoll itself has been in the Linux kernel around 20 years but io_uring has recently added the EpollCtl OpCode support in order to bypass the need of systerm calls to control it.
This is not a portable implementation given Windows I/O rings or MacOS doesn't provide anything related with their relevant epoll implementations if any.
Add
cargo add io-uring-epoll
Example
See Examples directory for the different use-cases.
License
Licensed under either of:
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Dependencies
~1.5MB
~27K SLoC