-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or requestquestionFurther information is requestedFurther information is requested
Description
At the moment
- we are using a lot of
std::sync::Mutex
inRawMaster
and some other places, they are not never held long so they should not perturbate the async flow, however it is unclear what their locking/unlocking performance cost is. - we are using
tokio::sync::Mutex
inGroup
and in crates usingetherage
. they are meant to not perturbate the async flow, but their locking/unlocking cost can be high since they are relying on astd::sync::Mutex
that is locked/unlocked at eachpoll
.
to investigate
We should see if it is possible to replace both of them with a home-made async mutex implemented with atomics, so polling it would only be an atomic read
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestquestionFurther information is requestedFurther information is requested