Replace mutexes in observers with SharexMutex to reduce memory usage
Summary: sizeof(SharedMutex) = 4, sizeof(std::mutex) = 40. This diff makes sure that we use smaller mutexes both in Observer Core and in Observables given that we may end up with many instances of these objects, yet there mutexes are accessed only on the update path. Reviewed By: praihan Differential Revision: D32271615 fbshipit-source-id: ba7d04632a677a9eb4ae398d681dadac3b06f033
Showing
Please register or sign in to comment