Files
notepush/src
Daniel D’Aquino 946ddb0f96 Remove Mutex in front of nostr_network_helper for better performance.
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>
2024-08-05 18:37:06 -07:00
..
2024-08-02 18:18:43 -07:00