Skip to content

[litep2p-milestone]: Improve Kademlia Performance #307

Open
@lexnv

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions