What is Nostr?
Five
npub16p8…fhdw
2024-11-10 11:03:52

Five on Nostr: Hey Yuki Kishimoto and #rust-nostr fans, can you enlighten me please: When I am ...

Hey Yuki Kishimoto (nprofile…ehfp) and #rust-nostr fans, can you enlighten me please:
When I am calculating my Web of Trust I do the following:
0. Create client with outbox model enabled
1. Get my follows, mutes, reports in one fetch call
2. Get follows, mutes, reports of my follows in another fetch call, using an authors filter that has all follows in it
3. Calculate scores with my weights locally

Question:
Why did step 2. take hours to complete?

It seems like it's trying to connect to loads of relays.
My guess is either I am doing sth horribly wrong or there is no smart relay set calculation for filters in the pool.

In ndk this calculation takes under 10 seconds to complete, even without any caching. It will first look at the filters and calculate a relay set that has all authors in it then does the fetching.

#asknostr #rust
Author Public Key
npub16p8v7varqwjes5hak6q7mz6pygqm4pwc6gve4mrned3xs8tz42gq7kfhdw