Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[litep2p-milestone]: Improve Kademlia Performance #307

Open
16 tasks
lexnv opened this issue Dec 17, 2024 · 0 comments
Open
16 tasks

[litep2p-milestone]: Improve Kademlia Performance #307

lexnv opened this issue Dec 17, 2024 · 0 comments

Comments

@lexnv
Copy link
Collaborator

lexnv commented Dec 17, 2024

The Vision

Enhance the performance and reliability of the litep2p Kademlia implementation to discover nodes faster.

The objective is to close the performance gap between libp2p and litep2p in terms of peer discovery speed. Currently, litep2p is slower (3-4 times on synthetic benchmarks) at discovering peers compared to libp2p.

The Plan

To achieve this, several improvements are required:

  • Refactor the Kademlia engine to transition to an event-driven implementation (cc poc: Refactor Kad Engine to poll based implementation #306)
  • Retain only reachable addresses in the DHT or utilize the transport manager to extract peer addresses
  • Return more than the current limit of 20 closest peers in response to queries
  • Provide intermediate KAD record responses, not just upon query completion, to facilitate authority discovery
@lexnv lexnv added this to the Improve Kademlia Performance milestone Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant