You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IMHO, I suggest that replacing tokio::sync::Mutex with std::sync::Mutex can potentially lead to better performance outcomes. This assertion is based on the design differences between the two mutex implementations, particularly in asynchronous contexts.
For further insights, check out the following resources:
IMHO, I suggest that replacing
tokio::sync::Mutex
withstd::sync::Mutex
can potentially lead to better performance outcomes. This assertion is based on the design differences between the two mutex implementations, particularly in asynchronous contexts.For further insights, check out the following resources:
Discussion on this topic. Never use Tokio mutexes.
tokio::sync::Mutex documentation.
The text was updated successfully, but these errors were encountered: