Closed George-Miao closed 4 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.
SendWrapper
std::thread::Thread
Arc
Trying in upstream: https://github.com/thk1/send_wrapper/pull/11
Current
SendWrapper
usesstd::thread::Thread
, involving cloning anArc
and instantly drop it, which causes overhead. We may rewrite it with a lighter number-only thread id.