Replies: 1 comment
-
|
Oh, and I've just realized that if you instead convert that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have noticed that you are selecting hashes for
sample_infohashesreplies randomly.While this bootstraps other nodes fairly quickly initially, the rate of convergence would fall off as they keep seeing more and more duplicates they have already received. This could be countered by instead selecting hashes using a quasirandom sequence.
This guarantees that we will eventually send each peer full copy of our index with minimum duplicates. And if most participants share basically the same set of hashes, it minimizes number of duplicates transmitted globally.
It would require using an ordered set of hashes, though. A simple B-Tree would suffice.
On the other hand, it requires zero peer tracking -- it is entirely stateless.
(Above is basically R₁ -- Kronecker. We could do R₂ too, but above is somewhat easier to understand I believe.)
Beta Was this translation helpful? Give feedback.
All reactions