on #83 I proposed to completely remove stratum_apps::custom_mutex::Mutex, but got some pushback together with the acknowledgement that a RwLock variant to Mutex could be a good improvement
so this issue aims to replace #83
it's important to note that using RwLock everywhere is not necessarily the most performant strategy
whenever the R/W ratio is "balanced", the performance overhead of RwLock is not justified and a Mutex will be more performant (todo @Shourya742 share ref)
but if there's way more Reads than Writes, then RwLock is justified
on #83 I proposed to completely remove
stratum_apps::custom_mutex::Mutex, but got some pushback together with the acknowledgement that aRwLockvariant toMutexcould be a good improvementso this issue aims to replace #83
it's important to note that using
RwLockeverywhere is not necessarily the most performant strategywhenever the R/W ratio is "balanced", the performance overhead of
RwLockis not justified and aMutexwill be more performant (todo @Shourya742 share ref)but if there's way more Reads than Writes, then
RwLockis justified