Replying to Avatar Five

Hey nostr:nprofile1qqsx3kq3vkgczq9hmfplc28h687py42yvms3zkyxh8nmkvn0vhkyyuspz4mhxue69uhkummnw3ezummcw3ezuer9wchsz9thwden5te0wfjkccte9ejxzmt4wvhxjme0qy88wumn8ghj7mn0wvhxcmmv9u0uehfp 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

I openes a PR: https://github.com/Pleb5/muse/pull/1

In my tests, after those changes, the WoT calculation takes between 7 and 13 secs.

Reply to this note

Please Login to reply.

Discussion

Oh my, you're so kind sir, thank you so much! ❤️