improve performance of route generation (#914)

this may fix following problem:

1. cpu 100% when large number of nodes in network.
2. high cpu usage when large number of foreign networks.
3. packet loss when new node enters/exits.
4. old routes not cleand and show as an obloleted entry.
This commit is contained in:
Sijie.Sun
2025-06-02 20:12:27 +08:00
committed by GitHub
parent b5dfc7374c
commit 4608bca998
7 changed files with 474 additions and 219 deletions

View File

@@ -1,3 +1,5 @@
mod graph_algo;
pub mod peer;
// pub mod peer_conn;
pub mod peer_conn;