this post was submitted on 21 Jun 2023
75 points (100.0% liked)
Lemmy
496 readers
2 users here now
Everything about Lemmy; bugs, gripes, praises, and advocacy.
For discussion about the lemmy.ml instance, go to !meta@lemmy.ml.
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
wait, so if you federate with another instance through one community, you won't get to see the rest of the feeds from that instance?
would subscribing to the domain directly (like kbin allows, maybe lemmy could in the future) reduce the number of actions to 700 squared?
Sorry! My bad, numbers are incorrrect but I'm not sure how to calculate correct numbers lol. Wouldn't it be 700x699 or 699x699 because instance wouldn't have to federate with itself?
oh yeah, it is
n * (n - 1)
bc ~700 bots need to do ~700 minus 1 actions
a
continue
inside anif
statement checking if the bot domain is the same as the subscribing one would sufficeedit: or use a search algorithm to pop the domain from the stack before starting the loop, that would be more efficient
edit2: even better: assuming all bot names are the same, you just iterate over the stack (constant), and pop each domain (new stack minus popped domain) and feed it to the 2nd loop.
edit3: SCRATCH EVERYTHING. The bot names don't even have to be the same, you just iterate over a constant stack of
botname@domain
entries and pop the iteration from it... feed the new stack to the second loop (nested) and done. Why did I take so long to reach this?