compio-rs / compio

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

Rewrite `SendWrapper` with lighter thread Id #252

Closed George-Miao closed 4 months ago

George-Miao commented 5 months ago

Current SendWrapper uses std::thread::Thread, involving cloning an Arc and instantly drop it, which causes overhead. We may rewrite it with a lighter number-only thread id.

Berrysoft commented 5 months ago

Trying in upstream: https://github.com/thk1/send_wrapper/pull/11