Optimise NodeConnectionManager.getClosestGlobalNodes
to concurrently contact nodes
#448
Labels
development
Standard development
r&d:polykey:core activity 4
End to End Networking behind Consumer NAT Devices
Specification
getClosestGlobalNodes
is the core logic for finding a node within the Kademlia network. Currently is implemented as a priority queue that queries a node for a list of nodes close to the target node. it then sequetially pings each node to see if it's alive before adding it to theNodeGraph
.This needs to be optimised to ping K nodes concurrently. It also needs to only ping and contact nodes in the priority order.
Additional context
Tasks
Semaphore
from@matrixai/async-locks
to enforce the concurrency limit.The text was updated successfully, but these errors were encountered: