Skip to content

Improve Kademlia Performance

Due by July 01, 2025 0% complete

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, se…

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 #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 fac
Loading