mirror of
https://github.com/nostrlabs-io/notepush.git
synced 2025-06-15 11:28:23 +00:00

This commit drastically improves the performance of notification manager by changing the mutex architecture to be only around the cache, instead of the entire nostr_network_helper. Furthermore, the lock is acquired twice when getting events that may be cached (or need caching), to avoid having the cache locked across Nostr fetch requests, which can take up to 10 seconds each in the worst case scenario. Testing -------- Quickly smoke tested sending some events to ensure push notifications are still working overall Signed-off-by: Daniel D’Aquino <daniel@daquino.me>