zedio
zedio copied to clipboard
A runtime for writing asynchronous applications with Modern C++, based on C++20 coroutine and liburing (io-uring)
https://github.com/8sileus/zedio/blob/8eff80431801c372a70e22cb09a48238ee63aecc/zedio/runtime/multi_thread/queue.hpp#L341 atomic (rust and C++) by default has align but uint32_t has no align so false sharing will be decrease performance
it seems you are use old tokio version for own implementation last version uses one mutex for this this impove the speed https://github.com/tokio-rs/tokio/blob/6fcd9c02176bf3cd570bc7de88edaa3b95ea480a/tokio/src/runtime/scheduler/multi_thread/worker.rs#L192 https://github.com/tokio-rs/tokio/blob/6fcd9c02176bf3cd570bc7de88edaa3b95ea480a/tokio/src/runtime/scheduler/multi_thread/worker.rs#L291