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
Published at
2024-11-10 11:03:52Event JSON
{
"id": "24e65930c2881b4b62df5af2331950fa3ffe6a19924ae0299186e21d26d80f66",
"pubkey": "d04ecf33a303a59852fdb681ed8b412201ba85d8d2199aec73cb62681d62aa90",
"created_at": 1731236632,
"kind": 1,
"tags": [
[
"p",
"68d81165918100b7da43fc28f7d1fc12554466e1115886b9e7bb326f65ec4272",
"",
"mention"
],
[
"t",
"rust-nostr"
],
[
"t",
"asknostr"
],
[
"t",
"rust"
]
],
"content": "Hey nostr:nprofile1qqsx3kq3vkgczq9hmfplc28h687py42yvms3zkyxh8nmkvn0vhkyyuspz4mhxue69uhkummnw3ezummcw3ezuer9wchsz9thwden5te0wfjkccte9ejxzmt4wvhxjme0qy88wumn8ghj7mn0wvhxcmmv9u0uehfp and #rust-nostr fans, can you enlighten me please:\nWhen I am calculating my Web of Trust I do the following:\n0. Create client with outbox model enabled\n1. Get my follows, mutes, reports in one fetch call\n2. Get follows, mutes, reports of my follows in another fetch call, using an authors filter that has all follows in it\n3. Calculate scores with my weights locally\n\nQuestion:\nWhy did step 2. take hours to complete?\n\nIt seems like it's trying to connect to loads of relays.\nMy guess is either I am doing sth horribly wrong or there is no smart relay set calculation for filters in the pool.\n\nIn 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.\n\n#asknostr #rust",
"sig": "8b04cd9680f2ce3487170695f947456f6ea9f4cfb2e34985628340477582ca37de2d651447d6dddf9923978a5d2297f10660b8ba8e66f5e346ce9d8a55f672e1"
}