Once implementation is available, wherever appropriate, replace futures::lock::Mutex
with futures::lock::RwLock
#9
Projects
futures::lock::Mutex
with futures::lock::RwLock
#9
Basically wait a week or so for 0.6.0 release of https://github.com/asomers/futures-locks that will use tokio 0.2.0.
Why we want to change it to RwLock rather than Mutex? As there are way many more reads of the data compared to writes. It is read every single client request (for EVERY client) while it is written to only once per single client - during registration. So that would be a significant performance gain.
Edit: This issue refers to uses in sfw-provider as well as in nym-client
The text was updated successfully, but these errors were encountered: