Open
Description
I have a use case, within each second, thousands of oneshot channels are created and signaled, and then dropped.
I am thinking about if they can be reused somehow.
For each oneshot there is a new Inner
allocated Arc::new(Inner::new())
on heap.
https://github.com/irrustible/async-oneshot/blob/main/src/lib.rs#L21
Can we somehow reuse the Inner
in order to reduce heap allocation? Say if it is received, the Inner
can be reset and used to create another pair of tx and rx?
Metadata
Metadata
Assignees
Labels
No labels