compio-rs / compio

A thread-per-core Rust runtime with IOCP/io_uring/polling.
MIT License
420 stars 37 forks source link

Batched submission & polling #44

Closed Berrysoft closed 1 year ago

Berrysoft commented 1 year ago

Fixes #36

Berrysoft commented 1 year ago

/cc @DXist @George-Miao

Berrysoft commented 1 year ago

For io-uring & mio, the user provided entries will be filled first, and then the cqueue in the driver. When the operations is not so many, there won't be allocations. For IOCP, the buffer of OVERLAPPED_ENTRY is changed to a fixed array, which means a user can poll at most 1024 entries.